How to send custom message to all players?
How to send custom message to all players? (Need right loop, because i want to check each player)
|
Re: How to send custom message to all players?
Code:
|
Re: How to send custom message to all players?
|
Re: How to send custom message to all players?
Quote:
Please post only good and efficient codes. You know that get_maxplayers() is called as many times as the loop does get executet right? |
Re: How to send custom message to all players?
Can you give me right code mottzi?
|
Re: How to send custom message to all players?
I gave you what you need. With get_players() you can send a message to anyone in the server. Read this.
|
Re: How to send custom message to all players?
I guess this is it:
PHP Code:
|
Re: How to send custom message to all players?
Quote:
|
Re: How to send custom message to all players?
Actually the correct way of looping throw all players is the one posted by mpd with the "h" flag also and before doing any action player id must be validated first. Or you can use 0 for the id and will be sent to all players.
|
Re: How to send custom message to all players?
Thank you.
|
| All times are GMT -4. The time now is 16:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.