SelectObject freezes player
#1

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);
Reply
#2

bump
Reply
#3

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

Doesn't work.
Reply
#5

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]);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)