SA-MP Forums Archive
Teleport cars - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Teleport cars (/showthread.php?tid=166707)



Teleport cars - FireCat - 09.08.2010

can anyone help me its simple but never came to my head but how can i make like when someone teleports anywhere if they are in a car the car and them tele??



_______________________
[GDZ]leader



Re: Teleport cars - Fj0rtizFredde - 09.08.2010

You mean SetVehiclePos? https://sampwiki.blast.hk/wiki/SetVehiclePos


Re: Teleport cars - [HUN]Jaki - 09.08.2010

Check if the player is in a vehicle, and if yes, teleport the vehicle (with the player in it).

if (IsPlayerInAnyVehicle(playerid)) SetVehiclePos(GetPlayerVehicleID(playerid), X, Y, Z);


Re: Teleport cars - FireCat - 09.08.2010

jaki i get a warning
Quote:

C:\Users\james\Desktop\serverrrrr\gamemodes\Gamemo de.pwn(572) : warning 217: loose indentation

O.o


Re: Teleport cars - FireCat - 09.08.2010

nah its ok iv fixed it thx


Re: Teleport cars - Mike_Peterson - 09.08.2010

Quote:
Originally Posted by FireCat
View Post
jaki i get a warning


O.o
AMG, dude, just go to that line and delete some spaces.. so it fits with others... thats the easiest error in whole PAWNO..


Re: Teleport cars - FireCat - 09.08.2010

amg? need a dictionary?


Re: Teleport cars - Mike_Peterson - 10.08.2010

Quote:
Originally Posted by FireCat
View Post
amg? need a dictionary?
Dude shut up, its simple replacement for OMG like Lol is replaces with Lawl so stfu.


Re: Teleport cars - Kar - 10.08.2010

Quote:
Originally Posted by Mike_Peterson
View Post
Dude shut up, its simple replacement for OMG like Lol is replaces with Lawl so stfu.
Hey Cool Out. He Fixed It.


Re: Teleport cars - Hal - 11.08.2010

Quote:
Originally Posted by Mike_Peterson
View Post
easiest error in whole PAWNO..
PAWNO is the editor, PAWN is the language. there are a bunch of editors, so pawno isnt the only one.
and usually a 'TAB' is used. Not a couple spaces