GTAvision.com - Forum - Grand Theft Auto News, Downloads, Community and more...

Position: Grand Theft Auto: San Andreas » Multiplayer » /back Befehl » Druckansicht
v1rus, 03.07.2010, 16:57
Hallo!
Will mir nen Server Scripten klappt auch bisher bloß will ich jetzt noch eine /back funktion
einfügen. wenn man diesen befehl anwendet dann wird das car/bike in/auf dem man sitzt wieder dahin
geportet wird wo es in AddStaticVehicle(522,1458.4092,-1748.3956,13.1183,2.3917,6,25); festgelegt
ist. wie geht das? ich habe da wenig ahnung!
vielleicht könnte mir jemand mal ne grundstrucktur posten. thx :)
N0rax, 03.07.2010, 18:52
Dazu musst du die Funktion "CreateVehicle" verwenden, sprich:

Code:
1
2
3
4
5
6
7
8
9
10
11
12
13
new auto1;

auto1 = CreateVehicle(....);


//und im befehl:

if (!strcmp("/back",cmdtext,true))
{
DestroyVehicle(auto1);
auto1 = CreateVehicle(....);//gleiche koordinaten von oben
return 1;
}



Viel spaß!
GTAvision.com :: Forumregeln :: FAQ :: Impressum :: Kontakt :: RDRvision.com :: LANOIREvision.com :: MaxPayneVision.com
NetVisionWork.NET
.: © 2006-2014 by GTAvision.com :.

Rockstar GamesTake-Two Interactive Deutschland

Free Grand Theft Auto Downloads