Advertisement
Guest User

/cheats

a guest
Mar 25th, 2018
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.39 KB | None | 0 0
  1. CMD:cheats(playerid, params[])
  2. {
  3. new string1[128],id,reason[128],sendername[30],giveplayer[30],string[256];
  4. if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
  5. if(ReportTime[playerid] == 2) return SCM(playerid, COLOR_WHITE,"{f03337}Dupa 3 minute poti folosi aceasta actiune.");
  6. if(IsPlayerConnected(playerid))
  7. {
  8. if(sscanf(params, "us[300]", id, reason)) return SendClientMessage(playerid, COLOR_WHITE, "{FF9900}Scrie: {33CCFF}/cheats <id cheater> <reason>");
  9. if(IsPlayerConnected(id))
  10. {
  11. GetPlayerName(playerid, sendername, sizeof(sendername));
  12. GetPlayerName(id, giveplayer, sizeof(giveplayer));
  13. SendClientMessage(playerid, COLOR_GREY, "Report submitted.");
  14. format(string, sizeof(string), "%s [%d] was reported for cheating by %s[%d]: %s.",giveplayer,id,sendername,playerid,reason);
  15. format(cheattext[playerid], sizeof(string1), string1);
  16. reportcheater[playerid] = id;
  17. ABroadCast(COLOR_REPORT,string,1);
  18. reportreason[id] = 3;
  19. ReportTime[playerid] = 3;
  20. AreCits[id] = 1;
  21. Citsreas[id] = reason;
  22. timerreport[playerid] = SetTimerEx("Reportul", 180000, 0, "%d", playerid);
  23. }
  24. else return SendClientMessage(playerid, COLOR_GREY, "The specified player ID is either not connected or has not authenticated.");
  25. }
  26. return 1;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement