07.10.2013, 19:52
Yeah, it will send globally.
By 'admin variable', I mean whatever you assign the admin level to for a player.
Like:
Also, what Danish said
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;
}