Thread: [Solved] Level + flag
View Single Post
1M1e
Member
Join Date: Mar 2020
Old 07-29-2021 , 12:59   Re: Level + flag
Reply With Quote #13

PHP Code:
#include <amxmisc>
#include <crxranks>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}



public 
client_putinserver(id)
{
    if(
crxranks_get_user_level(id) >= 40)
    {
        
SetVipFlagid )
    }
}

public 
crxranks_user_level_updated(idlevelbool:levelup)
{
    if(
level >= 40)
    {
        
SetVipFlagid )
    }
    


SetVipFlagid )
{
    
set_user_flagsidADMIN_LEVEL_H );

not working
1M1e is offline