Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- YCMD:reports(playerid, params[], help) {
- new string[180], result[64];
- if(PlayerInfo[playerid][pAdmin] < 1) return true;
- SCM(playerid, COLOR_WHITE, "Reports:");
- foreach(Player, i) {
- if(GetPVarInt(i, "Reported") == 1) {
- GetPVarString(i, "ReportedBy", result, sizeof(result));
- if(GetPVarInt(i, "ReportType") == 1) {
- format(string, sizeof(string), "DM: %s (%d) reported by %s. Score: %d", GetName(i), i, result, GetPVarInt(i, "ReportScore"));
- MesajLung(playerid, COLOR_DBLUE, string);
- }
- if(GetPVarInt(i, "ReportType") == 2) {
- format(string, sizeof(string), "Cheater: %s (%d) reported by %s. Score: %d", GetName(i), i, result, GetPVarInt(i, "ReportScore"));
- MesajLung(playerid, COLOR_DBLUE, string);
- }
- if(GetPVarInt(i, "ReportType") == 3) {
- format(string, sizeof(string), "Stuck: %s (%d)", GetName(i), i);
- MesajLung(playerid, COLOR_WARNING, string);
- }
- if(GetPVarInt(i, "ReportType") == 4) {
- GetPVarString(i, "ReportText", result, sizeof(result));
- format(string, sizeof(string), "Another: %s (%d): %s", GetName(i), i, result);
- MesajLung(playerid, COLOR_LGREEN, string);
- }
- }
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement