Problem with SetPlayerSpecialAction - 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: Problem with SetPlayerSpecialAction (
/showthread.php?tid=521618)
Problem with SetPlayerSpecialAction -
TonyII - 23.06.2014
Hey, I got a problem with SetPlayerSpecialAction(playerb, SPECIAL_ACTION_CUFFED); it just won't work. I used the same function but instead of cuffed I used hanndsup and that one worked perfectly fine. So why won't this one work?
Re: Problem with SetPlayerSpecialAction -
Dziugsas - 23.06.2014
Show all the code...For instance whats *playerb*.
Re: Problem with SetPlayerSpecialAction -
TonyII - 23.06.2014
It has nothing to do with that, anyway..
pawn Код:
CMD:cuff(playerid,params[])
{
new playerb,string[128];
if(PlayerInfo[playerid][pFaction] == 0) return SendClientMessage(playerid,COLOR_GREY,"** You aren't authorized to use this command. **");
if(sscanf(params, "u", playerb)) return SendClientMessage(playerid, COLOR_GREY, "** /cuff [playerid] **");
if(Cuffed[playerb] == 1) return SendClientMessage(playerid,COLOR_GREY,"** The player is cuffed already **");
Handsup[playerb] = 0;
SetPlayerSpecialAction(playerb,SPECIAL_ACTION_CUFFED);
return 1;
}
The code is unfinished it's pretty much a test command.