Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <ZCMD>
- #include <a_samp>
- #include <sscanf2>
- #include <foreach>
- stock ABroadCast(color,string[],level)
- {
- foreach(Player, i)
- {
- if (PlayerInfo[i][pAdmin] >= level && PlayerInfo[i][pTogReports] != 1)
- {
- SendClientMessageEx(i, color, string);
- //printf("%s", string);
- }
- }
- return 1;
- }
- CMD:dmreport(playerid, params[])
- {
- new giveplayerid, string[128];
- if(//your admin enums //)
- {
- SendClientMessageEx(playerid, COLOR_GRAD2, "You can't submit reports as an administrator.");
- return 1;
- }
- if(sscanf(params, "u", giveplayerid)) return SendClientMessageEx(playerid, COLOR_WHITE, "USAGE: /dmreport [playerid]");
- format(string, sizeof(string), "%s [ID %d] has reported a possible DM by ID %d. check /kills ", GetPlayerNameEx(playerid),playerid,giveplayerid);
- ABroadCast(COLOR_RED, string, 2);
- SendClientMessageEx(playerid, COLOR_YELLOW, "Your report message was sent to the Admins.");
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement