Raised This Month: $ Target: $400
 0% 

Send message only admins


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
skatz_ws
Junior Member
Join Date: Aug 2019
Old 09-04-2019 , 16:54   Send message only admins
Reply With Quote #1

Im trying to send this message only to player whit the flag ADMIN_BAN

PHP Code:
new players[32], num
get_players
(playersnum"a");
for(new 
<= numi++)
{
    
tempid players[i]
    
    if (
get_user_flags(tempid) & ADMIN_BAN)
    {
        if(
is_user_alive(tempid))
            
ColorChat(tempidGREY"Test")
        else
            
ColorChat(tempidGREY"Test2")
    }

What happens is that is sending 2 messages to all players. Can someone fix?

Last edited by skatz_ws; 09-04-2019 at 17:00.
skatz_ws 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 17:16.


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