chat message just for admins
hello. I'm trying to show an message just for admins, how could i do this ?
PHP Code:
|
Re: chat message just for admins
Just loop through all players and pass the player index in the first parameter of the ColorChat function instead of 0.
By the way, this is a steam only forum. |
Re: chat message just for admins
so i should do smth like this
PHP Code:
|
Re: chat message just for admins
No, you should use get_players() to get all connected players and loop the result.
|
Re: chat message just for admins
is this correct?
PHP Code:
|
Re: chat message just for admins
You don't need the else if in this case. Replace:
Code:
else if (!AntiChanger) Code:
else and Code:
for (new i=1, i<=inum; i++) Code:
for (new i=0, i<inum; i++) Code:
new name[MAX_PLAYERS + 1] Code:
new name[MAX_NAME_LENGTH] Code:
new name[32] |
Re: chat message just for admins
lets follow the rules no steam no support.
Quote:
|
Re: chat message just for admins
Or simply use my CromChat library instead of ColorChat:
Code:
|
Re: chat message just for admins
Quote:
|
All times are GMT -4. The time now is 07:37. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.