Hello to all people here, i need some help with this plugin that im using right now, it is a random glow for admins, and i want to add a command to enable or disable the glow because some admins get low fps, or dont want to use this, and this will be very helpful if someone can help me to make it, i just need that, a command like /glowon to able the admin to enable the glow or /glowoff to disable.
This is the code that i have:
PHP Code:
#include <amxmodx>
#include <fun>
#define FLAG ADMIN_BAN
#define UserAdmin(%1) (get_user_flags(%1) & FLAG)
new maxplayers
public plugin_init()
{
register_plugin("Admin Glow", "1.0", "Uknown")
maxplayers = get_maxplayers()
set_task(0.5, "GiveAdminsGlow", _, _, _, "b")
}
public GiveAdminsGlow(id)
{
for(new id = 1; id < maxplayers; id++)
{
if(is_user_alive(id) && UserAdmin(id))
{
set_user_rendering(id,kRenderFxGlowShell,random_num(0, 255),random_num(0, 255),random_num(0, 255),kRenderNormal,35)
}
}
}
I have a lit knowledge with scripting, but i can't make it by my self i dont know how, i try to make but it not work for me, so i hope someone with more experience can help me, sorry if this is the wrong section im newbie on this forum.