Raised This Month: $12 Target: $400
 3% 

Admin Tag


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
dezkit
Member
Join Date: Jun 2008
Old 07-05-2008 , 18:27   Admin Tag
Reply With Quote #1

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
dezkit is offline
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 07-05-2008 , 22:01   Re: Admin Tag
Reply With Quote #2

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)

__________________
hleV is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:49.


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