SA-MP Forums Archive
SetPlayerPos doesnt work - 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: SetPlayerPos doesnt work (/showthread.php?tid=477160)



SetPlayerPos doesnt work - Blu3scReeN - 22.11.2013

Hey guys,
today i finished my script, but i can't go into my checkpoints, if i reach the checkpoint, the position of the players doesnt change, only the facing angle were changed.

I tested it with debug infos, everything works, but the setplayerpos doesn't work.

Heres my code:
Код:
	if(strcmp(cmd, "/test", true) == 0)
	{
		SetPlayerPos(playerid, 1261.1570,2217.2432,7.9373);
		SetPlayerFacingAngle(playerid, 118.3505);
		return 1;
	}



Re: SetPlayerPos doesnt work - RayDcosta - 22.11.2013

first of all, dont use outdated command processors
use ZCMD.
and check parameters.
also, comment the angle line and see if it makes any change to the player at all?


Re: SetPlayerPos doesnt work - feartonyb - 22.11.2013

Change to

Код:
    if(!strcmp(cmdtext,"/test",true))
    {            
        SetPlayerPos(playerid,1261.1570,2217.2432,7.9373);
        SetPlayerFacingAngle(playerid, 118.3505);
        return 1;
    }