SA-MP Forums Archive
SelectObject freezes player - 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: SelectObject freezes player (/showthread.php?tid=563014)



SelectObject freezes player - Albon - 13.02.2015

The player gets stuck on the spot when I call SelectObject, but when I use a custom cmd to slap myself I am able to walk again and everything.

However, when I use this following code:
The player would still be frozen.. and just a note this is the same way I use to slap a player on /slap command. So why is it like that?
pawn Код:
new Float:pos[3];
SelectObjcet(playerid);
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2] + 0.5);



Re: SelectObject freezes player - Albon - 14.02.2015

bump


Re: SelectObject freezes player - basicllsw - 14.02.2015

try
Код:
SetPlayerPos(playerid, pos[0], pos[1], pos[2]+3.0);
or
Код:
SetPlayerPos(playerid, pos[0], pos[1]+0.5, pos[2]);



Re: SelectObject freezes player - Albon - 14.02.2015

Doesn't work.


Re: SelectObject freezes player - basicllsw - 14.02.2015

try to get cmd slap insert pos(+xx.x) in you cmd and replace to pos[n] in SetPlayerPos(playerid, pos[0], pos[1], pos[2]);