19.06.2009, 05:41
Hey, I need help creating a teleport script.
I have looked at these and I do not understand:
https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/AllowPlayerTeleport
When I insert this code into my PAWN Script, I get errors from hell.
This is the position I want to put in, and I don't understand how I'm supposed to insert it.
Thanks in advance!
I have looked at these and I do not understand:
https://sampwiki.blast.hk/wiki/SetPlayerPos
https://sampwiki.blast.hk/wiki/AllowPlayerTeleport
When I insert this code into my PAWN Script, I get errors from hell.
pawn Код:
public OnPlayerCommandText(playerid,text[])
{
if strcmp(text,"/teleport",true)
{
SetPlayerPos(playerid,0.0,0.0,10.0);
}
}
pawn Код:
AddPlayerClass(0,1708.5780,1606.8759,10.0156,73.0769,0,0,0,0,0,0); // lvairportspawn