/report need help
#1

For now, players can spam /report to admins. Can someone help me how to make it delay for a minute?

and admin like /acceptreport and then it will show "Hello, my name is *playername* (ID: #), I'm helping you now" to player that /report

thanks

here's the pwn

pawn Код:
CMD:report(playerid, params[])
{
    new string[128];
    new reporter[MAX_PLAYER_NAME];
    GetPlayerName(playerid, reporter, sizeof(reporter));
    if(!sscanf(params, "s[128]", string))
    {
        SendClientMessage(playerid, COLOR_YELLOW, "Report Anda telah dikirim kepada Admin.");
        if(PlayerInfo[playerid][pAdmin] >= 2)
        {
            if(strlen(string) > 65)
            {
                new string2[63], string3[65];
                strmid(string2, string, 65, strlen(string), 63);
                strmid(string3, string, 0, 65, 65);
                strdel(string, 80, strlen(string));
                format(string, sizeof(string), "Report from %s (ID: %d) %s ... ", reporter, playerid, string3);
                SendToAdmin(COLOR_ORANGE, string);
                format(string, sizeof(string), "Report from %s (ID: %d) ... %s ", reporter, playerid, string2);
                SendToAdmin(COLOR_ORANGE, string);
            }
            else
            {
                format(string, sizeof(string), "Report from %s (ID: %d): %s", reporter, playerid, params);
                SendToAdmin(COLOR_ORANGE, string);
            }
        }
    }
    else
    {
        SendClientMessage(playerid, COLOR_GREY, "PENGGUNAAN: /report [text]");
    }
    return 1;
}
Reply


Messages In This Thread
/report need help - by grizzley - 27.10.2013, 04:43
Re: /report need help - by mrtms - 27.10.2013, 04:51
Re: /report need help - by grizzley - 27.10.2013, 04:57
Re: /report need help - by mrtms - 27.10.2013, 05:03
Re: /report need help - by grizzley - 27.10.2013, 06:07
Re: /report need help - by Pottus - 27.10.2013, 06:22
Re: /report need help - by grizzley - 27.10.2013, 12:02

Forum Jump:


Users browsing this thread: 1 Guest(s)