25.11.2016, 20:37
(
Последний раз редактировалось iamjems; 25.11.2016 в 22:52.
)
Add this somewhere in your script, it doesn't really matter.
Now you can use it anywhere you would like to:
"Hello!" will now show up for level 1 or higher admins.
PHP код:
stock SendAdminMessage(color, string[], level)
{
foreach(Player, i)
{
if(PlayerInfo[i][pAdmin] >= level) // change this to your admin variable
{
SendClientMessage(i, color, string);
}
}
}
PHP код:
SendAdminMessage(0x00FFFFFF, "Hello!", 1);