SA-MP Forums Archive
Help! - 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: Help! (/showthread.php?tid=124403)



Help! - [cA]Unforseen - 30.01.2010

Hi,
im an amateur on samp scripting but i want anyone to help me
when i make a teleport its just teleport the player (no cars teleport)

can anyone tell me what is wrong??


Re: Help! - Correlli - 30.01.2010

Use the SetVehiclePos function.


Re: Help! - [HiC]TheKiller - 30.01.2010

https://sampwiki.blast.hk/wiki/SetPlayerPos

OOPS, didn't see the post above (25 seconds difference).


Re: Help! - [cA]Unforseen - 30.01.2010

thx alot to the fast reply's

i'll try it now


Re: Help! - [cA]Unforseen - 30.01.2010

error 017: undefined symbol "vehicleid"


Re: Help! - [cA]Unforseen - 30.01.2010

help


Re: Help! - patchkinson - 30.01.2010

Here

if(!strcmp("/teleport", cmdtext, true))
{
if(IsPlayerInAnyVehicle(playerid))
{
new vehicleid = GetPlayerVehicleID(playerid);
SetVehiclePos(vehicleid,X,Y,Z);
return 1;
}
else
{
SetPlayerPos(playerid,X,Y,Z);
return 1;
}
}
BTW: i didnt use pawn quotes because they made this script idented!


Re: Help! - [cA]Unforseen - 30.01.2010

thx
hope it works


Re: Help! - patchkinson - 30.01.2010

Quote:
Originally Posted by [cA
Unforseen ]
thx
hope it works
no problem. if you get identation problems just check my post again, i updated it


Re: Help! - [cA]Unforseen - 30.01.2010

It worked!!!!!!!!!!!!!!!!
thx