Raised This Month: $ Target: $400
 0% 

how to print only one time


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
indraraj striker
Veteran Member
Join Date: Mar 2014
Location: Under the water
Old 09-05-2015 , 01:13   how to print only one time
Reply With Quote #1

how to do ?
Loop all players to check flag but print only one time
Problem :
now its printing
NO Admins Online
NO Admins Online
NO Admins Online
NO Admins Online
depending upon online players

PHP Code:
#include <amxmodx>

public plugin_init() {
register_clcmd("say /test","test");
}

public 
test()
{
new 
players[32], inumtempid;
get_players(playersinum);

for(new 
ii<inumi++)
        {        
            
tempid players[i];

            if(!(
get_user_flags(tempid) & ADMIN_KICK))
{
client_print(0,print_chat,"NO Admins Online");
}
}

Attached Files
File Type: sma Get Plugin or Get Source (test.sma - 484 views - 335 Bytes)
indraraj striker 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 11:23.


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