Creating report command?
#3

pawn Код:
command(report, playerid, params[]) {
    new report[128], name[24];
    if(sscanf(params, "s[128]", report)) return SendClientMessage(playerid, -1, "/report [reason]");
    GetPlayerName(playerid, name, 24);

    format(report, sizeof(report), "%s report's %s", name, report);
    for(new i = 0; i != MAX_PLAYERS; ++i)  {
        if(AdminLevel[i] > 0) {
           SendClientMessage(i, -1, report);
        }
    }
    return 1;
}
Just transform into dcmd!
Reply


Messages In This Thread
Creating report command? - by ServerScripter - 28.02.2012, 10:32
Re: Creating report command? - by Sufyan - 28.02.2012, 10:34
Re: Creating report command? - by Ricop522 - 28.02.2012, 10:56
Re: Creating report command? - by ServerScripter - 29.02.2012, 09:54
Re: Creating report command? - by milanosie - 29.02.2012, 09:57
Re: Creating report command? - by emokidx - 29.02.2012, 09:59
Re: Creating report command? - by Ricey - 29.02.2012, 10:01
Re: Creating report command? - by milanosie - 29.02.2012, 10:03
Re: Creating report command? - by Ricey - 29.02.2012, 10:06
Re: Creating report command? - by milanosie - 29.02.2012, 10:14

Forum Jump:


Users browsing this thread: 2 Guest(s)