0.3e Cuff system help REP+
#3

This should work as a command i think
pawn Код:
CMD:cuff(playerid,params[])
{
    new id;
    if(sscanf(params,"u",id))
    {
        SendClientMessage(playerid,0xFFFFFFFF,"Usage: /cuff <id>");
    }
    }
    else if(id == INVALID_PLAYER_ID)
    {
        SendClientMessage(playerid,0xFFFFFFFF,"that player is not online");
    }
    else
    {
        new name[MAX_PLAYER_NAME],string[MAX_PLAYER_NAME],name2[MAX_PLAYER_NAME],string2[MAX_PLAYER_NAME];
        GetPlayerName(playerid,name,sizeof(name));
        format(string,sizeof(string),"You have been cuffed by %s.",name);
        SendClientMessage(id,0xFFFFFFFF,string);
        GetPlayerName(id,name2,sizeof(name2));
        format(string2,sizeof(string2),"You cuffed %s.",name2);
        SendClientMessage(playerid,0xFFFFFFFF,string2);
        SetPlayerSpecialAction(id,SPECIAL_ACTION_CUFFED);
    }
    return 1;
}
Reply


Messages In This Thread
0.3e Cuff system help REP+ - by tiernantheman - 09.05.2012, 17:47
Re: 0.3e Cuff system help REP+ - by Kudoz - 09.05.2012, 17:59
Re: 0.3e Cuff system help REP+ - by HDFord - 09.05.2012, 18:03
Re: 0.3e Cuff system help REP+ - by N0FeaR - 09.05.2012, 18:06
Re: 0.3e Cuff system help REP+ - by tiernantheman - 09.05.2012, 18:35
Re: 0.3e Cuff system help REP+ - by N0FeaR - 09.05.2012, 18:55
Re: 0.3e Cuff system help REP+ - by tiernantheman - 09.05.2012, 19:03
Re: 0.3e Cuff system help REP+ - by N0FeaR - 10.05.2012, 11:58
Re: 0.3e Cuff system help REP+ - by tiernantheman - 10.05.2012, 13:56
Re: 0.3e Cuff system help REP+ - by N0FeaR - 13.05.2012, 01:12

Forum Jump:


Users browsing this thread: 1 Guest(s)