Raised This Month: $ Target: $400
 0% 

Admin Chat Tags


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Fun Stuff       
Troya
Junior Member
Join Date: Sep 2014
Old 09-04-2014 , 08:08   Admin Chat Tags
Reply With Quote #1

This is My first plugin xD

its easy too add tags.

for it to work you need colorchat

Add your self to users.ini
Quote:
exempel:
"Steamid" "" "a" "ce" ;Owner Tag
"Steamid" "" "d" "ce" ;Admin Tag
"Steamid" "" "b" "ce" ; Vip Tag
Change Log
Quote:
v1.0 - First relese
v2.0 - Fixed some code
PHP Code:
/////////////////////////
///////Edit Here ////////
/////////////////////////

#define Flags 3 // Max Ranks

new const PlayerFlags[Flags] = {
    
ADMIN_IMMUNITY,
    
ADMIN_BAN,
    
ADMIN_RESERVATION
}

new const 
g_szTag[Flags][] =

    
"[Owner]"
    
"[Admin]"
    
"[Vip]"
}
//////////////////////////////////////////////////////////
/////// Stop Here if you dont no how pawn works xD ///////
////////////////////////////////////////////////////////// 
Attached Files
File Type: inc chatcolor.inc (1.9 KB, 287 views)
File Type: sma Get Plugin or Get Source (AdminTags.sma - 476 views - 3.0 KB)

Last edited by Troya; 09-04-2014 at 10:16.
Troya is offline
Syturi0
Veteran Member
Join Date: Aug 2014
Location: Your mom house -Portugal
Old 09-04-2014 , 08:37   Re: Admin Chat Tags
Reply With Quote #2

Really? That simple?
I might use it.
Btw do dead people can see alive people tags and vice-versa?
Can you make them in green?

Last edited by Syturi0; 09-04-2014 at 08:38.
Syturi0 is offline
Troya
Junior Member
Join Date: Sep 2014
Old 09-04-2014 , 08:43   Re: Admin Chat Tags
Reply With Quote #3

Quote:
Originally Posted by Syturi0 View Post
Really? That simple?
I might use it.
Btw do dead people can see alive people tags and vice-versa?
Can you make them in green?
Attached Files
File Type: sma Get Plugin or Get Source (AdminTags.sma - 216 views - 3.0 KB)

Last edited by Troya; 09-04-2014 at 08:46.
Troya is offline
Dark_Siders
Member
Join Date: Aug 2013
Location: Dreaming World
Old 09-04-2014 , 09:42   Re: Admin Chat Tags
Reply With Quote #4

how can i set which tag i want to use in chat?
__________________
***********
I want to die peacefully in my sleep like my grandfather, not screaming in terror like his passengers.

***********
Dark_Siders is offline
Troya
Junior Member
Join Date: Sep 2014
Old 09-04-2014 , 09:57   Re: Admin Chat Tags
Reply With Quote #5

Quote:
Originally Posted by Dark_Siders View Post
how can i set which tag i want to use in chat?
edit this and add you to users.ini

Quote:
exempel:
"Steamid" "" "a" "ce" ;Owner Tag
"Steamid" "" "d" "ce" ;Admin Tag
"Steamid" "" "b" "ce" ; Vip Tag
PHP Code:
///////////////////////// 
///////Edit Here //////// 
///////////////////////// 

#define Flags 3 // Max Ranks 

new const PlayerFlags[Flags] = { 
    
ADMIN_IMMUNITY
    
ADMIN_BAN
    
ADMIN_RESERVATION 


new const 
g_szTag[Flags][] = 
{  
    
"[Owner]",  
    
"[Admin]",  
    
"[Vip]" 

////////////////////////////////////////////////////////// 
/////// Stop Here if you dont no how pawn works xD /////// 
////////////////////////////////////////////////////////// 

Last edited by Troya; 09-04-2014 at 10:13.
Troya is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-04-2014 , 10:13   Re: Admin Chat Tags
Reply With Quote #6

Why not moving the constant to a file so peoples don't need to edit the source ?
__________________
HamletEagle is offline
Troya
Junior Member
Join Date: Sep 2014
Old 09-04-2014 , 10:21   Re: Admin Chat Tags
Reply With Quote #7

Quote:
Originally Posted by HamletEagle View Post
Why not moving the constant to a file so peoples don't need to edit the source ?
Smart xD Maby do it later xD
Troya is offline
Dark_Siders
Member
Join Date: Aug 2013
Location: Dreaming World
Old 09-04-2014 , 10:35   Re: Admin Chat Tags
Reply With Quote #8

Quote:
Originally Posted by Troya View Post
edit this and add you to users.ini



PHP Code:
///////////////////////// 
///////Edit Here //////// 
///////////////////////// 

#define Flags 3 // Max Ranks 

new const PlayerFlags[Flags] = { 
    
ADMIN_IMMUNITY
    
ADMIN_BAN
    
ADMIN_RESERVATION 


new const 
g_szTag[Flags][] = 
{  
    
"[Owner]",  
    
"[Admin]",  
    
"[Vip]" 

////////////////////////////////////////////////////////// 
/////// Stop Here if you dont no how pawn works xD /////// 
////////////////////////////////////////////////////////// 
if i have both a and b flags which tag will be set on me?
__________________
***********
I want to die peacefully in my sleep like my grandfather, not screaming in terror like his passengers.

***********
Dark_Siders is offline
Troya
Junior Member
Join Date: Sep 2014
Old 09-04-2014 , 10:42   Re: Admin Chat Tags
Reply With Quote #9

Quote:
Originally Posted by Dark_Siders View Post
if i have both a and b flags which tag will be set on me?
The first in here xD

if you have like flag abcdefghijklmnopqrstu "All Flags" The tag vill be set to the first you have in the plugin in this case ADMIN_IMMUNITY

PHP Code:
new const PlayerFlags[Flags] = { 
    
ADMIN_IMMUNITY// 1 
    
ADMIN_BAN// 2
    
ADMIN_RESERVATION // 3

Troya is offline
Mordekay
Squirrel of Fortune
Join Date: Apr 2006
Location: Germany
Old 09-04-2014 , 12:29   Re: Admin Chat Tags
Reply With Quote #10

You should read HERE before posting plugins.
__________________

Mordekay is offline
Reply



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 07:47.


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