Quote:
Originally Posted by Natsheh
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(PLUGIN, VERSION, AUTHOR)
}
public crxranks_user_level_updated(id, true)
{
if(crxranks_get_user_level(id) >= 40)
{
SetVipFlag( id )
}
return PLUGIN_HANDLED
}
SetVipFlag( id )
{
set_user_flags( id, ADMIN_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