AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   Admin Tag (https://forums.alliedmods.net/showthread.php?t=73765)

dezkit 07-05-2008 18:27

Admin Tag
 
Hello,

it would be cool if someone made (or is there one already) a plugin where when an admin with the admin level of kick (or whatever) gets an "[ADMIN]" placed at the end of their names.

regards

hleV 07-05-2008 22:01

Re: Admin Tag
 
Already exists (I made one already). I've edited my Admin Tag so this version is the same as you need:
PHP Code:

#include <amxmodx>
#include <amxmisc>
 
#define ADMIN_FLAG ADMIN_IMMUNITY
 
new at_enableat_custom
 
public plugin_init()
{
        
register_plugin("Admin Tag""1.2""hleV")
 
        
at_enable register_cvar("at_enable""1")
        
at_custom register_cvar("at_custom"" [ADMIN]")
}
 
public 
client_putinserver(id)
        if (
get_pcvar_num(at_enable))
                
set_task(0.1"changePlayerName"id)
 
public 
changePlayerName(id)
{
        new 
name[32], tag[32]
        
get_user_name(idname31)
        
get_pcvar_string(at_customtag31)
 
        if (
contain(nametag) && get_user_flags(id) & ADMIN_FLAG)
                
client_cmd(id"name ^"%s%s^""nametag)




All times are GMT -4. The time now is 06:30.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.