SendClientMessage(playerid, COLOR_WHITE, "USAGE: (/m)egaphone [megaphone chat]"); return 1; } if(IsACop(playerid) || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4|| IsASoldier(playerid)) { if(!IsACopCar(tmpcar) && !IsASABICar(tmpcar) && !IsAnAmbulance(tmpcar) && !IsANGCar(tmpcar)) { SendClientMessage(playerid, COLOR_GRAD2, " You are not in a Government vehicle !"); return 1; } else if(IsACop(playerid)) { format(string, sizeof(string), "[Officer %s< %s]", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLO R_YELLOW,COLOR_YELLOW); } else if(type == 2) { format(string, sizeof(string), "[Agent %s< %s]", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLO R_YELLOW,COLOR_YELLOW); } else if(IsAMedic(playerid)) { format(string, sizeof(string), "[Doctor %s< %s]", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLO R_YELLOW,COLOR_YELLOW); } else if(IsASoldier(playerid)) { format(string, sizeof(string), "[Soldier %s< %s]", sendername, result); ProxDetector(60.0, playerid, string,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLO R_YELLOW,COLOR_YELLOW); } } else { SendClientMessage(playerid, COLOR_GRAD2, " You are not part of a Faction !"); return 1; } |