This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

[REQ] Need [HELP] Tag Admin Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
T0FF
Member
Join Date: Oct 2014
Location: Asia
Old 08-18-2015 , 04:39   [REQ] Need [HELP] Tag Admin Plugin
Reply With Quote #1

There are many admin tags plugins, but those have many tags options.
I need a simple, one admin tag [HELP] , ADMIN_LEVEL_C
It must look like;
[HELP] : AdminName : Message

[HELP] tag should be green in color while AdminName color and Message color should be same as teamcolor.

Thanks in advance!
T0FF is offline
Qumsieh
Senior Member
Join Date: Jun 2015
Old 08-18-2015 , 04:42   Re: [REQ] Need [HELP] Tag Admin Plugin
Reply With Quote #2

try this
https://forums.alliedmods.net/showthread.php?t=183491
Qumsieh is offline
T0FF
Member
Join Date: Oct 2014
Location: Asia
Old 08-18-2015 , 05:07   Re: [REQ] Need [HELP] Tag Admin Plugin
Reply With Quote #3

Quote:
Originally Posted by Qumsieh View Post
This is not what actually i want.
T0FF is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 08-18-2015 , 08:18   Re: [REQ] Need [HELP] Tag Admin Plugin
Reply With Quote #4

https://forums.alliedmods.net/showpo...81&postcount=3

Put your flag and tag, if you do not know how to tell.
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
T0FF
Member
Join Date: Oct 2014
Location: Asia
Old 08-18-2015 , 10:36   Re: [REQ] Need [HELP] Tag Admin Plugin
Reply With Quote #5

Quote:
Originally Posted by Hartmann View Post
https://forums.alliedmods.net/showpo...81&postcount=3

Put your flag and tag, if you do not know how to tell.
Thank you Hartmann, it really works what i want.

But there is a little problem, i already run admin_ranks plugin,
When i run this [VIP] tag plugin with that admin_ranks plugin,
Then it doesn't work. Can it be solved?
T0FF is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 08-18-2015 , 15:41   Re: [REQ] Need [HELP] Tag Admin Plugin
Reply With Quote #6

Try to put in plugins.ini
this plugin and then admin_ranks.
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
T0FF
Member
Join Date: Oct 2014
Location: Asia
Old 08-19-2015 , 07:32   Re: [REQ] Need [HELP] Tag Admin Plugin
Reply With Quote #7

Quote:
Originally Posted by Hartmann View Post
Try to put in plugins.ini
this plugin and then admin_ranks.
Still, Vip_tag plugin is not working when admin_ranks plugin is on.
T0FF is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 08-19-2015 , 09:11   Re: [REQ] Need [HELP] Tag Admin Plugin
Reply With Quote #8

Can I get a link from admin_ranks.
__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann is offline
T0FF
Member
Join Date: Oct 2014
Location: Asia
Old 08-19-2015 , 09:25   Re: [REQ] Need [HELP] Tag Admin Plugin
Reply With Quote #9

Quote:
Originally Posted by Hartmann View Post
Can I get a link from admin_ranks.
Attached Files
File Type: sma Get Plugin or Get Source (admin_chat_color_tags.sma - 515 views - 14.8 KB)
T0FF is offline
Hartmann
Senior Member
Join Date: Nov 2014
Old 08-19-2015 , 10:34   Re: [REQ] Need [HELP] Tag Admin Plugin
Reply With Quote #10

Which is a problem to add another prefix in the plugin?

I quickly created a better and simpler version of the admin_ranks. Try...
PHP Code:
#include <amxmodx>

#define HEADADMIN_CHAT_FLAG     ADMIN_IMMUNITY
#define ADMIN_CHAT_FLAG        ADMIN_LEVEL_E
#define VIP_CHAT_FLAG        ADMIN_LEVEL_F
#define SMS_CHAT_FLAG        ADMIN_LEVEL_G
#define HELP_CHAT_FLAG        ADMIN_LEVEL_C

new const g_szTag[][] = {
    
"",
    
"Head Admin",
    
"Admin",
    
"Mod",
    
"VIP",
    
"Help"
}

public 
plugin_init(){
    
register_message(get_user_msgid("SayText"),"handleSayText");
}
public 
handleSayText(msgIdmsgDestmsgEnt){
    new 
id get_msg_arg_int(1);
    
    if(
is_user_connected(id)){
        new 
szTmp[256],
        
szTmp2[256];
        
        new 
admin 0iFlags get_user_flags(id);
        
        if(
iFlags HEADADMIN_CHAT_FLAG)
            
admin 1
        
else if(iFlags ADMIN_CHAT_FLAG)
            
admin 2
        
else if(iFlags VIP_CHAT_FLAG)
            
admin 3
        
else if(iFlags SMS_CHAT_FLAG)
            
admin 4
        
else if(iFlags HELP_CHAT_FLAG)
            
admin 5
        
        
new szPrefix[64
        
formatex(szPrefix,charsmaxszPrefix ),"^x04[%s]",g_szTag[admin])    
        
get_msg_arg_string(2szTmpcharsmax(szTmp));
        
        
        if(!
equal(szTmp"#Cstrike_Chat_All")){
            
add(szTmp2charsmax(szTmp2), szPrefix);
            
add(szTmp2charsmax(szTmp2), " ");
            
add(szTmp2charsmax(szTmp2), szTmp);
        }
        else{
            
add(szTmp2charsmax(szTmp2), szPrefix);
            
add(szTmp2charsmax(szTmp2), "^x03 %s1^x01 :  %s2");
        }
        
set_msg_arg_string(2szTmp2);
    }
    return 
PLUGIN_CONTINUE;

__________________

RETAKES v1.0
github.com/alghtryer/retakes

Contact : [email protected]

BTC Donate: 1QAh1NLmeHy81LF9r8PaeGjYqHL2BBcJTx

Hartmann 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 19:52.


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