Special action handsup problem [rep++] - 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: Special action handsup problem [rep++] (
/showthread.php?tid=540173)
Special action handsup problem [rep++] -
EnforcerDon - 03.10.2014
My problem is this - I can't get a player to put their hands down after they have put them up.
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;
}
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?
Re: Special action handsup problem [rep++] -
IceBilizard - 03.10.2014
try
pawn Код:
CMD:noaction(playerid, params[])
{
#pragma unused params
ClearAnimations(playerid);
return 1;
}
Re: Special action handsup problem [rep++] -
EnforcerDon - 03.10.2014
Quote:
Originally Posted by IceBilizard
try
pawn Код:
CMD:noaction(playerid, params[]) { #pragma unused params ClearAnimations(playerid); return 1; }
|
Ok, that was actually pretty simple, thanks for your assistance and rep++