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

Quote:
Originally Posted by The overrated maniac View Post
PHP Code:

#include <amxmisc>
#include <crxranks>

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

public plugin_init() {
register_plugin(PLUGINVERSIONAUTHOR)

register_event("HLTV""new_round""a""1=0""2=0");
}

public 
new_round(id)
{
if(
crxranks_get_user_level(id) >= 40)
{
SetVipFlag(id)
}

}

SetVipFlagid )
{
set_user_flagsidADMIN_LEVEL_H );
}

-------------------->

#include <amxmisc>
#include <crxranks>

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

public plugin_init() {
register_plugin(PLUGINVERSIONAUTHOR)

register_event("HLTV""new_round""a""1=0""2=0");
}

public 
new_round(id)
{
for(new 
0i<MAX_PLAYERSi++){
if(
crxranks_get_user_level(i) >= 40 && is_user_connected(i))
{
SetVipFlag(i)
}
}
}

SetVipFlagid )
{
set_user_flagsidADMIN_LEVEL_H );

this code works but when you said i don't recommend using that, i removed it
1M1e is offline