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

Solved cmdaccess not registering


Post New Thread Reply   
 
Thread Tools Display Modes
Natsheh
Veteran Member
Join Date: Sep 2012
Old 07-19-2018 , 21:20   Re: cmdaccess not registering
Reply With Quote #11

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fun>

new CMD;

public 
plugin_init() {
    
    
CMD register_clcmd("ultra""ultra_heal");
        
register_clcmd("say /ultra""ultra_transition");
}

public 
ultra_transition(id)
{
            new 
nulllvl;
            if(
get_clcmd(CMD""0null""0lvl) == 1)
            {
                       
ultra_heal(idlvlCMD);
                       return 
1
            
}
            return 
1
}

public 
ultra_heal(idlevelcid)
{
    if(!
cmd_access(idlevelcid1))
        return 
1;
        
    
set_user_health(id150)
    return 
1;

Here is a way around.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 07-19-2018 at 21:23.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
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 00:24.


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