08.08.2012, 12:51
pawn Код:
CMD:m(playerid, text[]) return cmd_megaphone(playerid, text);
CMD:megaphone(playerid, text[])
{
if(PlayerMuteInfo[playerid][AllMuted]) return SendClientMessage(playerid, TEAM_CYAN_COLOR, " You can't speak, you have been silenced!");
if(IsACop(playerid) || IsAnAmbulance(playerid))
{
if(IsAnAmbulance(GetVehicleModel(GetPlayerVehicleID(playerid))) || IsACopCar(GetVehicleModel(GetPlayerVehicleID(playerid))))
{
new string[128];
format(string, sizeof(string), "[%s: o< %s!]", GetPlayersName(playerid), params);
ProxDetector(20.0, playerid, string, COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW,COLOR_YELLOW);
}
else SendClientMessage(playerid, COLOR_LIGHTRED, " You are not in a police vehicle!");
}
return 1;
}