Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:cheats(playerid, params[])
- {
- new string1[128],id,reason[128],sendername[30],giveplayer[30],string[256];
- if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
- if(ReportTime[playerid] == 2) return SCM(playerid, COLOR_WHITE,"{f03337}Dupa 3 minute poti folosi aceasta actiune.");
- if(IsPlayerConnected(playerid))
- {
- if(sscanf(params, "us[300]", id, reason)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/cheats <id cheater> <reason>");
- if(IsPlayerConnected(id))
- {
- GetPlayerName(playerid, sendername, sizeof(sendername));
- GetPlayerName(id, giveplayer, sizeof(giveplayer));
- SendClientMessage(playerid, COLOR_GREY, "Report submitted.");
- format(string, sizeof(string), "%s [%d] was reported for cheating by %s[%d]: %s.",giveplayer,id,sendername,playerid,reason);
- format(cheattext[playerid], sizeof(string1), string1);
- reportcheater[playerid] = id;
- ABroadCast(COLOR_REPORT,string,1);
- reportreason[id] = 3;
- ReportTime[playerid] = 3;
- AreCits[id] = 1;
- Citsreas[id] = reason;
- timerreport[playerid] = SetTimerEx("Reportul", 180000, 0, "%d", playerid);
- }
- else return SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated.");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement