The plugin makes it so that in the performance of certain conditions allows you to become an admin for some time. After that time expires, the admin rights are automatically deleted. The plugin is similar to Become VIP, but in a completely different way. When you write a command in the chat will be open a menu where you have 3 points. These are the conditions that you must meet. If you meet the conditions will be written after the condition "[CHECKED]" in red and in the performance of the conditions, you will receive the four option, which as you press Add. If you already have an admin won't be able to use the command.
Conditions that must be met are:
You haven't banned before
You have a certain played time in the server
To having a certain number of kills
There are two version. One - loading bans from listip.cfg, and second version - works with AMX BANS. The bans check is turned off by default, but you can turn it on by editing the sma and compile it plugin. Flags to be given the certain played time; (in minutes) the required number of kills-set by cvar so you don't have to make any edits.
By default, the duration of the admin rights is 30 days (1 month), but you can change it by sma.
Cvars
becomeadmin_req_playtime (Default: 1500) -The required played time in minutes
becomeadmin_req_kills (Default: 50) - The required kills
becomeadmin_admin_flags (Default: abcdeijo) - Admin flags that will be given to the player
Hmm this look nice but there is a problem , never check "becomeadmin_req_playtime" i changed to 5 min and nothing happens , i try to reconnect but nothing. Can someone fix this ?
first time to 10 , than 20 but don`t work , my mod its csdm.
But plugin have more bugs. like if you become vip for x days or hours , your kills doesnt delet , eg: in my case i will put vip for 60 min but you have to do 100 kils. after your vip expire you can type again /ba and get vip bcz your kills doesnt deleted
Example. People simply vote to hack or crack the server and it promises admin rights. Well my back-door did not really work until I reconnected or changed map.
first time to 10 , than 20 but don`t work , my mod its csdm.
But plugin have more bugs. like if you become vip for x days or hours , your kills doesnt delet , eg: in my case i will put vip for 60 min but you have to do 100 kils. after your vip expire you can type again /ba and get vip bcz your kills doesnt deleted
public plugin_end()
{
#if defined CHECK_USER_BANNED
TrieDestroy(g_tUserBansDB);
#endif
}
public ShowMenu(id)
{
if(is_user_admin(id))
{
ColorChat(id,TEAM_COLOR,"^1[^4Become^3Admin^1] You have been already became an Admin!");
return PLUGIN_HANDLED;
}
CheckUser(id);
static szMenuItem[64], iMenu;
iMenu = menu_create("\rBecome an Admin:","handlerMenuAdmin");
#if defined CHECK_USER_BANNED
formatex(szMenuItem, sizeof szMenuItem -1,"\yYou were not banned. %s",(g_bIsUserNotBanned[id] ? "\r[CHECKED]" : ""));
#else
formatex(szMenuItem, sizeof szMenuItem -1,"\dYou were not banned.");
#endif
Please stop trying to help. You appear to just be posting random stuff. Wait until you actually understand more about AMX Mod X and how the game works.