Quote:
Originally Posted by [uL]Pottus
pawn Код:
CMD:report(playerid, params[]) { new string[128]; if(!IsPlayerLoggedIn(playerid) || PlayerInfo[playerid][pAsshole] == 1) return SendClientMessage(playerid, COLOR_GREY, "You are not allowed to use command."); if(sscanf(params, "s[128]", params)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /report [text]"); if(PlayerInfo[playerid][pRMute] > 0) return SendClientMessage(playerid, COLOR_GREY, "You are muted from reporting."); if(AntiAdv(playerid, params)) return 1; if(strlen(params) > 128) return SendClientMessage(playerid, COLOR_GREY, "Maximum characters limit is 128."); if(gettime() - ReportTime[playerid] < 25) { format(string, sizeof(string), "You need to wait %d more seconds before making a report message again.", ReportTime[playerid]); SendClientMessage(playerid, COLOR_GREY, string); } else { SendReportToQue(playerid, params); Log("logs/reports.log", string); SendClientMessage(playerid, COLOR_ORANGE, "Your report have been sent to the online admins, Please be patient."); ReportTime[playerid] = gettime(); } return 1; }
|
It says "You need to wait 13867396 more seconds before making a report message again." Lol...Anyways thank you both I will +Rep you