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

Solved need plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Soheyb
Junior Member
Join Date: Feb 2022
Old 04-04-2022 , 10:59   need plugin
Reply With Quote #1

Hi all
i Need Plugin Hud Admins and Vips Online Like This


Admins Online : numbers ;VIPS online : numbers
with out names

Last edited by Soheyb; 04-08-2022 at 09:45.
Soheyb is offline
Dyaus
Member
Join Date: Aug 2021
Old 04-04-2022 , 15:21   Re: need plugin
Reply With Quote #2

which vip plugin and post custom include file if there is one
Dyaus is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-04-2022 , 16:20   Re: need plugin
Reply With Quote #3

Quote:
Originally Posted by Soheyb View Post
Hi all
i Need Plugin Hud Admins and Vips Online Like This


Admins Online : numbers ;VIPS online : numbers
with out names
PHP Code:
#include <amxmodx>

#if !defined MAX_PLAYERS
const MAX_PLAYERS 32
#endif

#define ADMIN_ACCESS ADMIN_KICK
#define VIP_ACCESS ADMIN_LEVEL_H

public plugin_init( ) 
{
    
register_plugin"Check Online Stuff""1.0""Supremache")
    
set_task1.0"OnTaskCheckOnline", .flags "b" )
}

public 
OnTaskCheckOnlineid )
{
    new 
iPlayersMAX_PLAYERS ], iNumiAdminNumiVipNum
    get_players
iPlayersiNum"ch" );
    
    for( new 
iiPlayeriNumi++ )
    {
        
iPlayer iPlayers];
        
        if( 
get_user_flagsiPlayer ) & ADMIN_ACCESS )
        {
            
iAdminNum iPlayer;
        }
        
        if( 
get_user_flagsiPlayer ) & VIP_ACCESS )
        {
            
iVipNum iPlayer;
        }
    }
    
    
set_hudmessage(025500.020.1706.012.0)
    
show_hudmessage(0"Admins Online: %d"iAdminNum )
    
set_hudmessage(02552550.020.2006.012.0)
    
show_hudmessage(0"Vips Online: %d"iVipNum )

__________________
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; 04-07-2022 at 07:59.
Supremache is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-05-2022 , 06:23   Re: need plugin
Reply With Quote #4

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

#define ADMIN_ACCESS ADMIN_KICK
#define VIP_ACCESS ADMIN_LEVEL_H

public plugin_init( ) 
{
    
register_plugin"Check Online Stuff""1.0""Supremache")
    
set_task1.0"OnTaskCheckOnline", .flags "b" )
}

public 
OnTaskCheckOnlineid )
{
    new 
iPlayersMAX_PLAYERS ], iNumiAdminNumiVipNum
    get_players
iPlayersiNum"ch" );
    
    for( new 
iiPlayeriNumi++ )
    {
        
iPlayer iPlayers];
        
        if( 
get_user_flagsiPlayer ) & ADMIN_ACCESS )
        {
            
iAdminNum iPlayer;
        }
        
        if( 
get_user_flagsiPlayer ) & VIP_ACCESS )
        {
            
iVipNum iPlayer;
        }
    }
    
    
set_hudmessage(025500.020.1706.012.0)
    
show_hudmessage(0"Admins Online: %d"iAdminNum )
    
set_hudmessage(02552550.020.2006.012.0)
    
show_hudmessage(0"Vips Online: %d"iVipNum )




PHP Code:
#include <amxmodx>

#define ADMIN_ACCESS ADMIN_KICK
#define VIP_ACCESS ADMIN_LEVEL_H

public plugin_init( ) 
{
    
register_plugin"Check Online Stuff""1.0""Supremache")
    
set_task1.0"OnTaskCheckOnline", .flags "b" )
}

public 
OnTaskCheckOnlineid )
{
    new 
iPlayersMAX_PLAYERS ], iNumiAdminNumiVipNum
    get_players
iPlayersiNum"ch" );
    
    for( new 
iiPlayeriNumi++ )
    {
        
iPlayer iPlayers];
        
        if( 
get_user_flagsiPlayer ) & ADMIN_ACCESS )
        {
            
iAdminNum ++;
        }
        
        if( 
get_user_flagsiPlayer ) & VIP_ACCESS )
        {
            
iVipNum ++;
        }
    }
    
    
set_hudmessage(025500.020.1706.012.0)
    
show_hudmessage(0"Admins Online: %d"iAdminNum )
    
set_hudmessage(02552550.020.2006.012.0)
    
show_hudmessage(0"Vips Online: %d"iVipNum )

__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-05-2022 , 06:39   Re: need plugin
Reply With Quote #5

I was using this method but the other method also works and I think it will return the number of the last player.
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Old 04-06-2022, 20:38
Soheyb
This message has been deleted by Soheyb.
Soheyb
Junior Member
Join Date: Feb 2022
Old 04-06-2022 , 20:44   Re: need plugin
Reply With Quote #6

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

#define ADMIN_ACCESS ADMIN_KICK
#define VIP_ACCESS ADMIN_LEVEL_H

public plugin_init( ) 
{
    
register_plugin"Check Online Stuff""1.0""Supremache")
    
set_task1.0"OnTaskCheckOnline", .flags "b" )
}

public 
OnTaskCheckOnlineid )
{
    new 
iPlayersMAX_PLAYERS ], iNumiAdminNumiVipNum
    get_players
iPlayersiNum"ch" );
    
    for( new 
iiPlayeriNumi++ )
    {
        
iPlayer iPlayers];
        
        if( 
get_user_flagsiPlayer ) & ADMIN_ACCESS )
        {
            
iAdminNum iPlayer;
        }
        
        if( 
get_user_flagsiPlayer ) & VIP_ACCESS )
        {
            
iVipNum iPlayer;
        }
    }
    
    
set_hudmessage(025500.020.1706.012.0)
    
show_hudmessage(0"Admins Online: %d"iAdminNum )
    
set_hudmessage(02552550.020.2006.012.0)
    
show_hudmessage(0"Vips Online: %d"iVipNum )

Problems in compile
Soheyb is offline
Supremache
Veteran Member
Join Date: Sep 2019
Location: Egypt
Old 04-07-2022 , 08:00   Re: need plugin
Reply With Quote #7

MAX_PLAYERS
Try now
__________________
Youtube.com/Supremache

Bank System [Nvault - SQL Support]
VIP System
  • If you think it's that simple, then do it yourself.
Supremache is offline
Moody92
Veteran Member
Join Date: May 2011
Location: Oman
Old 04-08-2022 , 09:23   Re: need plugin
Reply With Quote #8

Quote:
Originally Posted by Supremache View Post
I was using this method but the other method also works and I think it will return the number of the last player.
Not sure how AMXX orders the players in
PHP Code:
get_playersiPlayersiNum"ch" ); 
but you are looping through all players.

If you have many players online, the last number might not be representative of all admins online.

Last edited by Moody92; 04-08-2022 at 09:24.
Moody92 is offline
Soheyb
Junior Member
Join Date: Feb 2022
Old 04-08-2022 , 09:45   Re: need plugin
Reply With Quote #9

Quote:
Originally Posted by Supremache View Post
MAX_PLAYERS
Try now
it work now Ty
Soheyb 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 23:07.


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