Thread: [Solved] Level + flag
View Single Post
The overrated maniac
Member
Join Date: Jun 2021
Location: Argentina
Old 07-29-2021 , 12:20   Re: Level + flag
Reply With Quote #7

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 );


Last edited by The overrated maniac; 07-29-2021 at 12:21.
The overrated maniac is offline