Need a Uncuff of this:
#1

Hi, i recently added the /cuff command to my server

pawn Код:
COMMAND:cuff(playerid, params[])
{
    new pID, targetname[MAX_PLAYER_NAME], name[MAX_PLAYER_NAME], string[128];
    if(GetPlayerSkin(playerid) == 280 && 281) // Both IDs are police officer
    {
        GetPlayerName(pID, targetname, sizeof(targetname));
        GetPlayerName(playerid, name, sizeof(name));
        if (isnull(params)) return SendClientMessage(playerid, -1, "Usage: /cuff <playerid>");
        format(string, sizeof(string), "You have been cuff by Police Officer %s", name);
        format(string,sizeof(string), "You have cuff player %s", targetname);
        SendClientMessage(pID, -1, string);
        SendClientMessage(playerid, -1, string);
        TogglePlayerControllable(pID, 0); // Freezes the player. Isn't /cuff in RP, a cmd to freeze?

    } else return SendClientMessage(playerid, -1, "You need to have a police skin !");
    return 1;
}
Can someone please make me a /uncuff? i cant find a exactly one of this
Reply


Messages In This Thread
Need a Uncuff of this: - by kickflipdude - 30.03.2011, 19:50
Re: Need a Uncuff of this: - by antonio112 - 30.03.2011, 19:54
Re: Need a Uncuff of this: - by KaleOtter - 30.03.2011, 19:54
Re: Need a Uncuff of this: - by kickflipdude - 30.03.2011, 20:07

Forum Jump:


Users browsing this thread: 1 Guest(s)