27.10.2013, 04:43
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
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;
}