/report bug..
#3

You mean this I believe?

pawn Код:
dcmd_report(playerid,params[])
{
    new string[128];
    new ID;
    if(sscanf(params,"u",ID))
    {
        SendClientMessage(playerid,COLOR_GRAD1,"USAGE: /report [playerid/PartOfName]");
        return 1;
    }
    if(!IsPlayerConnected(ID))
    {
        format(string,sizeof(string),"That player is not conneted ");
        SendClientMessage(playerid,COLOR_GRAD1,string);
        return 1;
    }
    format(string,sizeof(string),"Your report has been sent!");
    SendClientMessage(playerid,COLOR_YELLOW,string);

    format(string,sizeof(string),"Report: %s(%d) reported: %s(%d).",PlayerName(playerid),playerid,PlayerName(ID),ID);
    ABroadCast(RED, string, 1);
    return 1;
}
Reply


Messages In This Thread
/report bug.. - by whando - 10.11.2013, 10:08
Re: /report bug.. - by SAMProductions - 10.11.2013, 10:13
Re: /report bug.. - by iZN - 10.11.2013, 10:17
Re: /report bug.. - by SAMProductions - 10.11.2013, 10:18
Re: /report bug.. - by whando - 10.11.2013, 10:36

Forum Jump:


Users browsing this thread: 1 Guest(s)