Raised This Month: $ Target: $400
 0% 

Find out registered functions


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheRadiance
Senior Member
Join Date: Nov 2007
Location: Kazakhstan
Old 03-21-2009 , 07:04   Re: Find out registered functions
Reply With Quote #2

You can replace prefix admin_ with amx_ and then execute it from the clients console with it arguments.
PHP Code:
public CommandKickidlevelcid )
{
    if ( !
cmd_accessidlevelcid) )
        return 
PLUGIN_HANDLED

    
new szCommand16 ]
    
read_argv0szCommandsizeof szCommand ) - )

    if ( 
equaliszCommand"admin_") )
        
replace_allszCommandsizeof szCommand ) - 1"admin_""amx_" )

    
client_cmdid"%s"szCommand )
    return 
PLUGIN_HANDLED

TheRadiance is offline
Send a message via ICQ to TheRadiance
 



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 08:57.


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