#1

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??
Reply
#2

Use the SetVehiclePos function.
Reply
#3

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

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

thx alot to the fast reply's

i'll try it now
Reply
#5

error 017: undefined symbol "vehicleid"
Reply
#6

help
Reply
#7

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!
Reply
#8

thx
hope it works
Reply
#9

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
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)