Raised This Month: $ Target: $400
 0% 

[VIP] Tag in chat


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
fanatix
Junior Member
Join Date: Feb 2012
Old 01-20-2013 , 14:26   [VIP] Tag in chat
Reply With Quote #1

I dont know how to set prefix [V.I.P] in chat for users who have flag "t" (ADMIN_LEVEL_H), can someone give me an idea, i want to learn the steps

Can i do it like this:

PHP Code:
#include <amxmodx>  
#include <amxmisc>  
#include <colorchat>  

public plugin_init() {  
    
register_plugin("VIP_say""1.0""uknown")  
    
register_clcmd("say""vip")  
}  

public 
vip(id){ 
    if(
get_user_flags(id) & ADMIN_LEVEL_H
    { 
        new 
said[192], name[30
        
get_user_name(id,name,29
        
read_args(said,191
        
remove_quotes(said
        
ColorChat(0GREEN,"[V.I.P] ^3%s ^1: %s",name,said
        return 
PLUGIN_HANDLED 
    



Last edited by fanatix; 01-20-2013 at 14:36.
fanatix is offline
 


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 13:32.


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