if(strcmp(cmd, "/r", true) == 0){ { if (Cop[playerid]==0) { SendPlayerFormattedText(playerid,"The police radio is for cops only",0); } else { new gangChat[256]; new senderName[MAX_PLAYER_NAME]; new string[256]; strmid(gangChat,text,1,strlen(text)); GetPlayerName(playerid, senderName, sizeof(senderName)); format(string, sizeof(string),"[Police Radio] %s: %s", senderName, gangChat); for (new i = 0; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i) && Cop[i] == 1) { SendClientMessage(i, COLOR_RED, string); } } } return 0; } return 0; }