Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- forward MessageToP(color,const string[]);
- public MessageToP(color,const string[])
- {
- for(new i = 0; i < MAX_PLAYERS; i++) if(IsPlayerConnected(i) == 1) if (PlayerInfo[i][Level] >= 1) SendClientMessage(i, color, string);
- return 1;
- }
- CMD:911(playerid, params[]) {
- if(PlayerInfo[playerid][LoggedIn] == 1){
- new reported,reason[90];
- if(sscanf(params,"is",reported,reason)) return SendClientMessage(playerid,red,"Usage: /911 [playerid] [reason]");
- new suspect[MAX_PLAYER_NAME], rsuspect[MAX_PLAYER_NAME], str[128];
- GetPlayerName(reported, suspect, sizeof(suspect));
- GetPlayerName(playerid, rsuspect, sizeof(rsuspect));
- format(str, sizeof(str), "Police Call: %s(Id:%d) Reported %s(Id:%d) Reason: %s", rsuspect,playerid, suspect, reported, reason);
- MessageToP(COLOR_RED,str);
- return SendClientMessage(playerid,yellow, "|- Thanks For Calling Police Your Report will be -|");
- } else return SendClientMessage(playerid,red,"ERROR: Invalid reason to report that player!");
- }
Advertisement
Add Comment
Please, Sign In to add comment