Teleport cmd - 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)
+--- Thread: Teleport cmd (
/showthread.php?tid=386400)
Teleport cmd -
Counterafk - 20.10.2012
Hi, im kinda stuck, i cant seem to find the problem in my code:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/roof", cmdtext, true, 10) == 0)
{
SetPlayerPos(playerid, 1128.9464,-1479.8096,116.2813,0.3329);
return 1;
}
return 0;
}
Is it wrong with the co-ordinates? how do i know what parts of the co-ordinates to take? Help me please!
Re: Teleport cmd - HuSs3n - 20.10.2012
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp("/roof", cmdtext))
{
SetPlayerPos(playerid, 1128.9464,-1479.8096,116.2813);
SetPlayerFacingAngle(playerid,0.3329);
return 1;
}
return 0;
}
Re: Teleport cmd -
Anthony © - 20.10.2012
Just a heads up, if I were you I'd get using either y_ccommands or zcmd as soon as pos.