Hello,
is there any plugin what allows to change amx_default_acess ?
I just want to gave free VIP for all players (called like Happy hour)
Found this, but doesnt work at all
PHP Code:
#include <amxmodx>
#include <csstats>
#include <hamsandwich>
#include <amxmisc>
new PLUGIN [] = ""
new VERSION [] = "0.0.1"
new AUTHOR [] = ""
new cvar_free_vip, cvar_free_vip_access
public plugin_init()
{
register_plugin( PLUGIN, VERSION, AUTHOR );
cvar_free_vip = register_cvar("free_vip", "0")
cvar_free_vip_access = register_cvar("free_vip_access", "btz")
}
public CheckPlayer(id)
{
new string1[16]
get_pcvar_string(cvar_free_vip_access, string1, 15)
new flags = read_flags(string1)
if(!(get_user_flags(id) & ADMIN_USER))
return PLUGIN_CONTINUE
if(1 <= get_pcvar_num(cvar_free_vip))
{
set_user_flags(id, get_user_flags(id) | flags)
}
else
{
remove_user_flags(id, flags)
}
return PLUGIN_CONTINUE
}
public client_infochanged(id)
{
new player_name[32], newName[32]
get_user_name(id, player_name, 31)
get_user_info(id, "name", newName, 31)
if (!equali(newName, player_name))
set_task(1.0, "CheckPlayer", id)
}
There is way to always edit amx.cfg but its too boring. I cant be always here and doing this.
Is there any way to edit this code? Od any comand to change default flag "z" to "bit" for example for 30 minutes?
Please, help me, i cant solve this.
And of course... sorry for my bad english.