How to make Message globally?
#5

Yeah, it will send globally.

By 'admin variable', I mean whatever you assign the admin level to for a player.

Like:
pawn Code:
enum pInfo
{
    Age,
    Skin,
    Score,
    AdminLevel //this would be your 'admin variable'.
};
new PlayerInfo[MAX_PLAYERS][pInfo];

//this code will only allow RCON administrators to send the message.
CMD:razer(playerid, params[])
{
     if(IsPlayerAdmin(playerid))//replace with your admin variable.
     {
    SendClientMessageToAll(0xFFFFFFFF,"====================================================================================================");
    SendClientMessageToAll(COLOR_GREEN, "Razer Gaming Roleplay : Owner");
    SendClientMessageToAll(COLOR_WHITE, "If you're bored play PAINTBALL or Roleplay with others");
    SendClientMessageToAll(COLOR_WHITE, "If you have suggestions talk to Razer IG or Post it on forums");
    SendClientMessageToAll(playerid, COLOR_YELLOW, "Don't forget to visit the forums everytime for updates!");
    SendClientMessageToAll(0xFFFFFFFF,"====================================================================================================");
      }    
return 1;

}
Also, what Danish said
Reply


Messages In This Thread
How to make Message globally? - by DouglasRamirez - 07.10.2013, 19:44
Re: How to make Message globally? - by EiresJason - 07.10.2013, 19:46
Re: How to make Message globally? - by DouglasRamirez - 07.10.2013, 19:49
Re: How to make Message globally? - by DanishHaq - 07.10.2013, 19:50
Re: How to make Message globally? - by EiresJason - 07.10.2013, 19:52
Re: How to make Message globally? - by DouglasRamirez - 07.10.2013, 19:57
Re: How to make Message globally? - by EiresJason - 07.10.2013, 19:59
Re: How to make Message globally? - by gotwarzone - 07.10.2013, 20:04
Re: How to make Message globally? - by DouglasRamirez - 07.10.2013, 20:05
Re: How to make Message globally? - by EiresJason - 07.10.2013, 20:06
Re: How to make Message globally? - by Dragonsaurus - 07.10.2013, 20:06
Re: How to make Message globally? - by Emmet_ - 07.10.2013, 20:07

Forum Jump:


Users browsing this thread: 1 Guest(s)