View Single Post
Author Message
MaNaReaver
Member
Join Date: Apr 2020
Location: India
Old 06-29-2020 , 14:02   Admin Tag issues
Reply With Quote #1

Hey AM,

I wrote a small snippet for an old plugin by Bigballer, but I was unable to force tagging admins when they remove their tag. How can I achieve this? Thanks

PHP Code:
public client_putinserver(idset_task(3.0,"admin_entered",id)

public 
admin_entered(id)
{
    if(
is_user_admin(id)) force_tag(id);
}

public 
force_tag(id)
{
    
get_user_name(idname31);

    if (
get_pcvar_num(amx_forcetag) && (containi(nametag) == -1))
    {
        
format(name31"%s %s"tagname);
        
set_user_info(id"name"name);
    }
    return 
PLUGIN_CONTINUE;
}

public 
client_infochanged(idadmin_entered(id); 
MaNaReaver is offline