[Help]: /report command!
#5

Quote:
Originally Posted by park4bmx
Посмотреть сообщение
The total string is too big!
pawn Код:
CMD:report(playerid, params[])
{
    new targetid;
    new reason[96];
    new string[200];
    if(sscanf(params, "us[96]" ,targetid, reason))return SCM(playerid, COLOR_GREY, "[USAGE]: /report [playerid] [reason]");
    if(!IsPlayerConnected(targetid))return SCM(playerid, COLOR_RED, "[ERROR]: This player is not connected.");
    SendClientMessage(playerid, COLOR_GREEN, "[SYSTEM]: Your Report have been send to an online Administartor (/admins)! Thank you For Reporting!");
    format(string, sizeof(string), "{80FF00}[REPORT]: {FB0435}%s(ID:%d) {00FF00}has Reported {FB0435}%s(ID:%d){00FF00}! {FB0435}|| {00FF00}Reason:", GetName(playerid), playerid, GetName(targetid), targetid);
    SendAdminMessage(string);
//2nd message
    format(string, sizeof string, "{FB0435}%s", reason);
    SendAdminMessage(string);
    return 1;
}
Thanks REP+
Reply


Messages In This Thread
[Help]: /report command! - by Areax - 02.06.2013, 06:43
Re: [Help]: /report command! - by Littlehelper - 02.06.2013, 07:04
Re: [Help]: /report command! - by Areax - 02.06.2013, 08:56
Re: [Help]: /report command! - by park4bmx - 02.06.2013, 09:33
Re: [Help]: /report command! - by Areax - 02.06.2013, 11:14

Forum Jump:


Users browsing this thread: 1 Guest(s)