/cuff to zcmd
#1

Anyone here can convert this is zcmd? and if possible only admins can use this command.


pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp("/cuffed", cmdtext, true, 7) == 0)
        {
                SetPlayerSpecialAction(playerid, SPECIAL_ACTION_CUFFED);
        SetPlayerAttachedObject(playerid, 0, 19418, 6, -0.011000, 0.028000, -0.022000, -15.600012, -33.699977, -81.700035, 0.891999, 1.000000, 1.168000);
                return 1;
        }
        if (strcmp("/uncuff", cmdtext, true, 7) == 0)
        {
        for(new i=0; i<MAX_PLAYER_ATTACHED_OBJECTS; i++)
        {
        if(IsPlayerAttachedObjectSlotUsed(playerid, i)) RemovePlayerAttachedObject(playerid, i);
        SetPlayerSpecialAction(playerid, SPECIAL_ACTION_NONE);
        }
        return 1;
    }
        return 0;
}
Reply


Messages In This Thread
/cuff to zcmd - by kbalor - 10.08.2012, 18:01
Re: /cuff to zcmd - by ryansheilds - 10.08.2012, 18:24
Re: /cuff to zcmd - by kbalor - 10.08.2012, 18:33
Re: /cuff to zcmd - by Cxnnor - 10.08.2012, 19:22
Re: /cuff to zcmd - by kbalor - 10.08.2012, 19:37
Re: /cuff to zcmd - by Cxnnor - 10.08.2012, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)