View Single Post
Hn.S Xmix
Member
Join Date: May 2021
Old 05-02-2024 , 19:36   Re: How to make a normal plugin can be obtainable by a vip admin or a flag only ?
Reply With Quote #2

Change this
---->
PHP Code:
register_clcmd("say b9""Command__GiveBalrog9"); 
To this
----->
PHP Code:
register_concmd("say b9","Command__GiveBalrog9"ADMIN_SLAY,"<authid, nick or #userid>"
Scroll all the way down to line 150 and change this.
----->
PHP Code:
public Command__GiveBalrog9(iPlayerlevel)
{    
    if ((
get_user_flags(iPlayer) & level) != level)
    return 
PLUGIN_HANDLED
        
    
if(!IsUserHasBalrog9(iPlayer)) Set_Bit(g_iBitUserHasBalrog9iPlayer);
    else 
Reset_Bit(g_iBitUserHasBalrog9iPlayer);    

For t flag you can check your cmd access in your configs you can also edit it to make it more flexible and efficient on any flags

Last edited by Hn.S Xmix; 05-02-2024 at 20:07.
Hn.S Xmix is offline