Raised This Month: $51 Target: $400
 12% 

Hud admin online & no admins online


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 12-11-2021 , 09:03   Hud admin online & no admins online
Reply With Quote #1

Hi guys bug
https://ibb.co/PxM47HF
is show me no admins online when admin online
any one ?
SHIFT0 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-11-2021 , 13:56   Re: Hud admin online & no admins online
Reply With Quote #2

How are we supposed to answer this without having the plugin?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 12-11-2021 , 14:09   Re: Hud admin online & no admins online
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
How are we supposed to answer this without having the plugin?
oh yes sorry

PHP Code:
#include <amxmodx>

public plugin_init( ) 
{
    
register_plugin"Admin's Online""1.0.0""Supremache" );
    
    
register_clcmd"say /admin""Admin_Online_Menu" )
    
register_clcmd"say /admins""Admin_Online_Menu" )

}
public 
Admin_Online_Menuid )
{
    new 
szData512 ], szPlayers32 ], szName32 ], iPlayeriNum;
        
    new 
iMenu menu_create"Admin online:""Admin_Online_Handler" )
    
    
get_playersszPlayersiNum"ch" );
    
    for( new 
0iNumi++ )
    {
        
iPlayer szPlayers];
        
        if( 
get_user_flagsiPlayer ) & ADMIN_KICK )
        {
            
get_user_nameiPlayerszNamecharsmaxszName ) )
            
formatexszDatacharsmaxszData ), "%s"szName );
        }
        else
        {
            
formatexszDatacharsmaxszData ), "\rNo admins online." );
        }
        
menu_additemiMenuszData )
    }

    
menu_setpropiMenuMPROP_BACKNAME"Previous page" )
    
menu_setpropiMenuMPROP_NEXTNAME"Next page" )
    
menu_setpropiMenuMPROP_EXITNAME"\wExit" )
        
    
menu_display(idiMenu)
    return 
PLUGIN_HANDLED;
}

public 
Admin_Online_Handler(idiMenuiItem
{
    
menu_destroyiMenu )
    return 
PLUGIN_HANDLED;
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1252\\ deff0\\ deflang1036{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/ 
SHIFT0 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-11-2021 , 14:28   Re: Hud admin online & no admins online
Reply With Quote #4

PHP Code:
#include <amxmodx>

public plugin_init( ) 
{
    
register_plugin"Admin's Online""1.0.0""Supremache" );
    
    
register_clcmd"say /admin""Admin_Online_Menu" )
    
register_clcmd"say /admins""Admin_Online_Menu" )

}
public 
Admin_Online_Menuid )
{
    new 
szData512 ], szPlayers32 ], szName32 ], iPlayeriNum;
        
    new 
iMenu menu_create"Admin online:""Admin_Online_Handler" )
    
    
get_playersszPlayersiNum"ch" );

    if(
iNum)
    {
        for( new 
0iNumi++ )
        {
            
iPlayer szPlayers];
            
            if( 
get_user_flagsiPlayer ) & ADMIN_KICK )
            {
                
get_user_nameiPlayerszNamecharsmaxszName ) )
                
formatexszDatacharsmaxszData ), "%s"szName );
            }
            
menu_additemiMenuszData )
        }
    }
    else
    {
        
formatexszDatacharsmaxszData ), "\rNo admins online." );
        
menu_additemiMenuszData )
    }

    
menu_setpropiMenuMPROP_BACKNAME"Previous page" )
    
menu_setpropiMenuMPROP_NEXTNAME"Next page" )
    
menu_setpropiMenuMPROP_EXITNAME"\wExit" )
        
    
menu_display(idiMenu)
    return 
PLUGIN_HANDLED;
}

public 
Admin_Online_Handler(idiMenuiItem
{
    
menu_destroyiMenu )
    return 
PLUGIN_HANDLED;

__________________

Last edited by OciXCrom; 12-11-2021 at 14:28.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 12-11-2021 , 14:45   Re: Hud admin online & no admins online
Reply With Quote #5

Quote:
Originally Posted by OciXCrom View Post
PHP Code:
#include <amxmodx>

public plugin_init( ) 
{
    
register_plugin"Admin's Online""1.0.0""Supremache" );
    
    
register_clcmd"say /admin""Admin_Online_Menu" )
    
register_clcmd"say /admins""Admin_Online_Menu" )

}
public 
Admin_Online_Menuid )
{
    new 
szData512 ], szPlayers32 ], szName32 ], iPlayeriNum;
        
    new 
iMenu menu_create"Admin online:""Admin_Online_Handler" )
    
    
get_playersszPlayersiNum"ch" );

    if(
iNum)
    {
        for( new 
0iNumi++ )
        {
            
iPlayer szPlayers];
            
            if( 
get_user_flagsiPlayer ) & ADMIN_KICK )
            {
                
get_user_nameiPlayerszNamecharsmaxszName ) )
                
formatexszDatacharsmaxszData ), "%s"szName );
            }
            
menu_additemiMenuszData )
        }
    }
    else
    {
        
formatexszDatacharsmaxszData ), "\rNo admins online." );
        
menu_additemiMenuszData )
    }

    
menu_setpropiMenuMPROP_BACKNAME"Previous page" )
    
menu_setpropiMenuMPROP_NEXTNAME"Next page" )
    
menu_setpropiMenuMPROP_EXITNAME"\wExit" )
        
    
menu_display(idiMenu)
    return 
PLUGIN_HANDLED;
}

public 
Admin_Online_Handler(idiMenuiItem
{
    
menu_destroyiMenu )
    return 
PLUGIN_HANDLED;


Ty man Worked EZly
SHIFT0 is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 12-11-2021 , 18:26   Re: Hud admin online & no admins online
Reply With Quote #6

Quote:
Originally Posted by SHIFT0 View Post
Hi guys bug
https://ibb.co/PxM47HF
is show me no admins online when admin online
any one ?
Ops i forget it:

PHP Code:
#include <amxmodx>

public plugin_init( ) 
{
    
register_plugin"Admin's Online""1.0.0""Supremache" );
    
    
register_clcmd"say /admin""Admin_Online_Menu" )
    
register_clcmd"say /admins""Admin_Online_Menu" )

}
public 
Admin_Online_Menuid )
{
    new 
szData512 ], szPlayers32 ], iSelectPlayerszName32 ], iPlayeriNum;
        
    new 
iMenu menu_create"Admin online:""Admin_Online_Handler" )
    
    
get_playersszPlayersiNum"ch" );
    
    for( new 
0iNumi++ )
    {
        
iPlayer szPlayers];
        
        if( 
get_user_flagsiPlayer ) & ADMIN_KICK )
        {
            
iSelectPlayer++
            
get_user_nameiPlayerszNamecharsmaxszName ) )
            
formatexszDatacharsmaxszData ), "%s"szName );
        }
        
menu_additemiMenuszData )
    }
    
    if( !
iSelectPlayer )
    {
        
addszDatacharsmaxszData ), "\rNo admins online." )
        
menu_additemiMenuszData )
    }

    
menu_setpropiMenuMPROP_BACKNAME"Previous page" )
    
menu_setpropiMenuMPROP_NEXTNAME"Next page" )
    
menu_setpropiMenuMPROP_EXITNAME"\wExit" )
        
    
menu_display(idiMenu)
    return 
PLUGIN_HANDLED;
}

public 
Admin_Online_Handler(idiMenuiItem
{
    
menu_destroyiMenu )
    return 
PLUGIN_HANDLED;

__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.

Last edited by Supremache; 12-11-2021 at 18:49.
Supremache is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-11-2021 , 18:37   Re: Hud admin online & no admins online
Reply With Quote #7

You forgot to add the item to the menu.
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 12-11-2021 , 18:48   Re: Hud admin online & no admins online
Reply With Quote #8

Quote:
Originally Posted by OciXCrom View Post
You forgot to add the item to the menu.
Well xD
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
SHIFT0
Senior Member
Join Date: Apr 2021
Location: Palestine
Old 12-12-2021 , 06:48   Re: Hud admin online & no admins online
Reply With Quote #9

Quote:
Originally Posted by Supremache View Post
Ops i forget it:

PHP Code:
#include <amxmodx>

public plugin_init( ) 
{
    
register_plugin"Admin's Online""1.0.0""Supremache" );
    
    
register_clcmd"say /admin""Admin_Online_Menu" )
    
register_clcmd"say /admins""Admin_Online_Menu" )

}
public 
Admin_Online_Menuid )
{
    new 
szData512 ], szPlayers32 ], iSelectPlayerszName32 ], iPlayeriNum;
        
    new 
iMenu menu_create"Admin online:""Admin_Online_Handler" )
    
    
get_playersszPlayersiNum"ch" );
    
    for( new 
0iNumi++ )
    {
        
iPlayer szPlayers];
        
        if( 
get_user_flagsiPlayer ) & ADMIN_KICK )
        {
            
iSelectPlayer++
            
get_user_nameiPlayerszNamecharsmaxszName ) )
            
formatexszDatacharsmaxszData ), "%s"szName );
        }
        
menu_additemiMenuszData )
    }
    
    if( !
iSelectPlayer )
    {
        
addszDatacharsmaxszData ), "\rNo admins online." )
        
menu_additemiMenuszData )
    }

    
menu_setpropiMenuMPROP_BACKNAME"Previous page" )
    
menu_setpropiMenuMPROP_NEXTNAME"Next page" )
    
menu_setpropiMenuMPROP_EXITNAME"\wExit" )
        
    
menu_display(idiMenu)
    return 
PLUGIN_HANDLED;
}

public 
Admin_Online_Handler(idiMenuiItem
{
    
menu_destroyiMenu )
    return 
PLUGIN_HANDLED;


Not work
https://ibb.co/9htCDGq
https://ibb.co/9htCDGq
https://ibb.co/9htCDGq

Last edited by SHIFT0; 12-12-2021 at 08:53. Reason: Not Work
SHIFT0 is offline
Nutu_
AlliedModders Donor
Join Date: Mar 2016
Location: Germany
Old 12-12-2021 , 09:06   Re: Hud admin online & no admins online
Reply With Quote #10

why don't you use it instead? it shows exactly what you want, edit colors yourself -> https://forums.alliedmods.net/showth...30495?p=830495
or create a command to appear only when its used, like /admins
__________________
a simple act of caring creates an endless ripple.

Last edited by Nutu_; 12-12-2021 at 09:07.
Nutu_ is offline
Reply



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:24.


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