Simple Restrain Animation
#1

pawn Код:
CMD:restrain(playerid, params[])
{
    new pName[128], name[128];
    new id;
    GetPlayerName(playerid, pName, sizeof(pName));
    GetPlayerName(id, name, sizeof(name));
    if(!sscanf(params,"u",id))
    {
        SetPlayerSpecialAction(id, SPECIAL_ACTION_CUFFED);
        TogglePlayerControllable(id, 0);
    }
    else
    {
        SendClientMessage(playerid, COLOR_RED, "USAGE: /restrain [playerid]");
    }
    return 1;
}
So this is the simple restrain command I have, however the special action doesn't trigger and just freezes the player. Any ideas on why?
Reply
#2

Код:
TogglePlayerControllable(id, 0);
SetPlayerSpecialAction(id, SPECIAL_ACTION_CUFFED);
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)