[HELP] /report Dialog
#9

Or you could just use ZCMD and sscanf.
pawn Код:
COMMAND:report(playerid, params[])
{
    new text[128], string[128], reportname[MAX_PLAYER_NAME];
    if(sscanf(params, "s[127]", text)) SendClientMessage(playerid, 0xFFFFFFAA, "USAGE: /report (message)");
    GetPlayerName(playerid, reportname, sizeof(reportname));
    format(string, sizeof(string), "Report from %s [%d]: %s ))", reportname, playerid, text);
    SendAdminMessage(0xFFF200, string);
    return 1;
}
Reply


Messages In This Thread
[HELP] /report Dialog - by ]B4E[kengston - 30.12.2010, 11:40
Re: [HELP] /report Dialog - by _rAped - 30.12.2010, 11:43
AW: [HELP] /report Dialog - by ]B4E[kengston - 30.12.2010, 11:46
AW: [HELP] /report Dialog - by ]B4E[kengston - 04.01.2011, 18:27
Re: [HELP] /report Dialog - by hanzen - 04.01.2011, 18:29
AW: [HELP] /report Dialog - by ]B4E[kengston - 04.01.2011, 18:32
Re: AW: [HELP] /report Dialog - by hanzen - 04.01.2011, 18:33
Re: [HELP] /report Dialog - by hanzen - 04.01.2011, 18:35
Re: [HELP] /report Dialog - by _rAped - 04.01.2011, 18:37

Forum Jump:


Users browsing this thread: 1 Guest(s)