Problem with SetPlayerSpecialAction
#1

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?
Reply
#2

Show all the code...For instance whats *playerb*.
Reply
#3

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.
Reply


Forum Jump:


Users browsing this thread: