03.10.2014, 06:48
My problem is this - I can't get a player to put their hands down after they have put them up.
I can use the command /cuff and the command /noaction to cuff and uncuff the player, but /noaction will not put the players hands down. Why not, and how can I work around this?
*edit* I've done some more testing, and sometimes it works fine. Is there possibly something I don't know about SetPlayerSpecialAction?
pawn Код:
CMD:noaction(playerid, params[])
{
#pragma unused params
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
return 1;
}
CMD:cuff(playerid, params[])
{
#pragma unused params
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
return 1;
}
CMD:hands(playerid, params[])
{
#pragma unused params
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_HANDSUP);
return 1;
}
*edit* I've done some more testing, and sometimes it works fine. Is there possibly something I don't know about SetPlayerSpecialAction?