Raised This Month: $ Target: $400
 0% 

How to send custom message to all players?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 06-06-2013 , 12:37   Re: How to send custom message to all players?
Reply With Quote #8

Quote:
Originally Posted by MPD View Post
I guess this is it:
PHP Code:
new pnumpIDplayers[32];
get_players(playerspnum"c");
for (new 
i=0i<pnumi++) {
    
pID=players[i];        // This is player ID
    //All messaging goes here. exaple.
    
client_print(pIDprint_center"This is a message");

Am I right?
All of them uses loop, better to use get_maxplayers(), it's returns gpGlobals->maxClients
TheDS1337 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:22.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode