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

set admin acces


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
giumbalau
Member
Join Date: Jan 2021
Old 02-21-2021 , 03:36   set admin acces
Reply With Quote #1

Anyone can set admin acces for this command please ?
ADMIN_KICK
PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <geoip>

#pragma semicolon 1

new const g_version[] = "1.0";

public 
plugin_init()
{
    
register_plugin"Amx showip"g_version"" );

    
register_concmd"amx_showip""cmdShow");
}

public 
cmdShowi_IndexiLeveliCid )
{
    if( !
cmd_accessi_IndexiLeveliCid) )
    {
        return 
PLUGIN_HANDLED;
    }

    static 
iPlayers32 ], iNumiIndex;
    
get_playersiPlayersiNum"c" );

    
client_printi_Indexprint_console"NAME | IP | COUNTRY" );

    for( 
0iNumi++ )
    {
        
Index iPlayers];

        if( 
is_user_connectedIndex ) )
        {
            static 
szName33 ], Ip33 ], szCountry46 ];
            
get_user_nameIndexszNamecharsmaxszName ) );
            
get_user_ipIndexIpcharsmaxIp ) );
            
geoip_countryIpszCountrycharsmaxszCountry ) );

            
client_printi_Indexprint_console"%s | %s | %s"szNameIpszCountry );
        }
    }

    return 
PLUGIN_CONTINUE;

giumbalau 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 14:01.


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