/report
#4

pawn Код:
#include <a_samp>
#include <sscanf2>
#include <zcmd>

CMD:report(playerid,params[])
{
    new ID,reason[64],string[124],n[2][24];
    if(sscanf(params,"us[64]",ID,reason)) return SendClientMessage(playerid,-1,"/report [id] [reason]");
    if(!IsPlayerConnected(ID)) return SendClientMessage(playerid,-1,"Idiot no connecto");
    GetPlayerName(playerid,n[1],24);
    GetPlayerName(ID,n[0],24);
    format(string,sizeof(string),"%s reported %s. Reason %s",n[1],n[0],reason);
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(IsPlayerAdmin(i))
            {
                SendClientMessage(i,-1,string);
            }
        }
    }
    print(string);
    return 1;
}
Reply


Messages In This Thread
/report - by fiter12 - 16.03.2013, 05:18
Re: /report - by rangerxxll - 16.03.2013, 05:24
Re: /report - by fiter12 - 16.03.2013, 13:40
Re: /report - by tyler12 - 16.03.2013, 13:51
Re: /report - by PabloDiCostanzo - 16.03.2013, 14:35
Re: /report - by erminpr0 - 16.03.2013, 14:51

Forum Jump:


Users browsing this thread: 3 Guest(s)