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

Quote:
Originally Posted by Natsheh View Post
public crxranks_user_level_update(id, level, bool:levelup)
Like this?

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

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

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
}



public 
crxranks_user_level_updated(idtrue)
{
    if(
crxranks_get_user_level(id) >= 40)
    {
        
SetVipFlagid )
    }
    return 
PLUGIN_HANDLED
    
}

SetVipFlagid )
{
    
set_user_flagsidADMIN_LEVEL_H );

this way its only effect when the level of player updated and the player will lose his flag after the map change

i want when he in level 40 he will get admin level h

Last edited by 1M1e; 07-29-2021 at 10:18.
1M1e is offline