Send message only admins
Im trying to send this message only to player whit the flag ADMIN_BAN
PHP Code:
|
Re: Send message only admins
In the loop body, the condition needs to be "i < num", not "i <= num".
There's no point of the "is_user_alive" check because you're using the "a" flag in "get_players" which returns only alive players. "Test2" will never be sent. Apart from that, I don't see a reason why all players are seeing 2 messages. I feel like you didn't provide the right code. |
Re: Send message only admins
Quote:
|
Re: Send message only admins
Quote:
|
Re: Send message only admins
Quote:
|
| All times are GMT -4. The time now is 17:16. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.