View Single Post
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