Megaphone Help
#4

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;
}
Reply


Messages In This Thread
Megaphone Help - by Luke_James - 08.08.2012, 12:03
Re: Megaphone Help - by kaiks - 08.08.2012, 12:41
Re: Megaphone Help - by Luke_James - 08.08.2012, 12:48
Re: Megaphone Help - by kaiks - 08.08.2012, 12:51
Re: Megaphone Help - by Luke_James - 08.08.2012, 14:48
Re: Megaphone Help - by SuperViper - 08.08.2012, 14:57

Forum Jump:


Users browsing this thread: 1 Guest(s)