Raised This Month: $ Target: $400
 0% 

Chattags


Post New Thread Reply   
 
Thread Tools Display Modes
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 07-16-2013 , 11:36   Re: Chattags
Reply With Quote #11

Quote:
Originally Posted by UchihaSkills View Post
if you dont want to help me in making my request then stop posting please.
Oh sorry its a bit bigger but whicked i hope you can read it now.

Last edited by UchihaSkills; 07-16-2013 at 11:36.
UchihaSkills is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-16-2013 , 13:20   Re: Chattags
Reply With Quote #12

PHP Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <cstrike>

#define PLUGIN "ChatTag"
#define VERSION "1.0"
#define AUTHOR "Kia"

/*
; n - custom level B
; o - custom level C
; p - custom level D
; q - custom level E
; r - custom level F
; s - custom level G
; t - custom level H
*/

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say""handle_say");    
}

public 
handle_say(id)
{
    new 
message[500];
    
read_args(message,499);
    
remove_quotes(message); 
    
    if(
message[0])
    {
        new 
szName[32];
        
get_user_name(idszName31);
        if(
is_user_alive(id))
        {
            if (
get_user_flags(id) & ADMIN_IMMUNITY)
            {
                
                
print_color(0id0"^x04[Admin] ^x03%s^x04: %s"szNamemessage)
            }
            
            else if (
get_user_flags(id) & ADMIN_BAN)
            {
                
print_color(0id0"^x04[Trial-Admin] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_B)
            {
                
print_color(0id0"^x04[Member] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_C)
            {
                
print_color(0id0"^x04[Trial-Member] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_D)
            {
                
print_color(0id0"^x04[VIP] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_E)
            {
                
print_color(0id0"^x04[Stammi] ^x03%s^x01: %s"szNamemessage)
            }
            else
            {
                
print_color(0id0"^x04[User] ^x03%s^x01: %s"szNamemessage)
            }
        }
        else
        {
            if (
get_user_flags(id) & ADMIN_IMMUNITY)
            {
                
print_color(0id0"^x01*DEAD* ^x04[Admin] ^x03%s^x04: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_BAN)
            {
                
print_color(0id0"^x01*DEAD* ^x04[Trial-Admin] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_B)
            {
                
print_color(0id0"^x01*DEAD* ^x04[Member] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_C)
            {
                
print_color(0id0"^x01*DEAD* ^x04[Trial-Member] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_D)
            {
                
print_color(0id0"^x01*DEAD* ^x04[VIP] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_E)
            {
                
print_color(0id0"^x01*DEAD* ^x04[Stammi] ^x03%s^x01: %s"szNamemessage)
            }
            else
            {
                
print_color(0id0"^x01*DEAD* ^x04[User] ^x03%s^x01: %s"szNamemessage)
            }
        }
        return 
PLUGIN_HANDLED_MAIN
    
}
    return 
PLUGIN_CONTINUE
}

public 
handle_say_team(id)
{
    new 
message[500];
    
read_args(message,499);
    
remove_quotes(message); 
    if(
message[0])
    {
        
        new 
szName[32];
        
get_user_name(idszName31);
        
        new 
iPlayers[32],iNum;
        
get_players(iPlayersiNum)
        for(new 
i=0;i<=iNum;i++)
        {
            new 
id2 iPlayers[i]
            if (
id2 && cs_get_user_team(id) == cs_get_user_team(id2))
            {
                if(
is_user_alive(id))
                {
                    if (
get_user_flags(id) & ADMIN_IMMUNITY)
                    {
                        
print_color(id2id0"^x04[Admin] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                    }
                    else
                    {
                        
print_color(id2id0"^x04[User] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                    }
                }
                else if (
get_user_flags(id) & ADMIN_BAN)
                {
                    
print_color(id2id0"^x04[Trial-Admin] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_B)
                {
                    
print_color(id2id0"^x04[Member] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_C)
                {
                    
print_color(id2id0"^x04[Trial-Member] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_D)
                {
                    
print_color(id2id0"^x04[VIP] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_E)
                {
                    
print_color(id2id0"^x04[Stammi] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else
                {
                    
print_color(id2id0"^x04[User] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
            }
            else
            {
                if (
get_user_flags(id) & ADMIN_IMMUNITY)
                {
                    
print_color(id2id0"^x01*DEAD* ^x04[Admin] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                
                else if (
get_user_flags(id) & ADMIN_BAN)
                {
                    
print_color(id2id0"^x01*DEAD* ^x04[Trial-Admin] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_B)
                {
                    
print_color(id2id0"^x01*DEAD* ^x04[Member] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_C)
                {
                    
print_color(id2id0"^x01*DEAD* ^x04[Trial-Member] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_D)
                {
                    
print_color(id2id0"^x01*DEAD* ^x04[VIP] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_E)
                {
                    
print_color(id2id0"^x01*DEAD* ^x04[Stammi] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else
                {
                    
print_color(id2id0"^x01*DEAD* ^x04[User] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
            }
        }
        return 
PLUGIN_HANDLED_MAIN
    
}
    return 
PLUGIN_HANDLED
}


public 
print_color(idcidcolor, const message[], any:...)
{
    new 
msg[192]
    
vformat(msgcharsmax(msg), message5)
    
/*      //if you want to use ML, enable
    replace_all(msg, charsmax(msg), "!g", "^x04")
    replace_all(msg, charsmax(msg), "!n", "^x01")
    replace_all(msg, charsmax(msg), "!t", "^x03")*/
    
new param
    
if (!cid) return
    else 
param cid
    
new team[32]
    
get_user_team(paramteam31)
    switch (
color)
    {
        case 
0msg_teaminfo(paramteam)
            case 
1msg_teaminfo(param"TERRORIST")
            case 
2msg_teaminfo(param"CT")
            case 
3msg_teaminfo(param"SPECTATOR")
        }
    if (
idmsg_saytext(idparammsg)
    else 
msg_saytext(0parammsg)
    if (
color != 0msg_teaminfo(paramteam)
}

msg_saytext(idcidmsg[])
{
message_begin(id?MSG_ONE:MSG_ALLget_user_msgid("SayText"), {0,0,0}, id)
write_byte(cid)
write_string(msg)
message_end()
}

msg_teaminfo(idteam[])
{
message_begin(MSG_ONEget_user_msgid("TeamInfo"), {0,0,0}, id)
write_byte(id)
write_string(team)
message_end()
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1031\\ f0\\ fs16 \n\\ par }
*/ 
I send you that already a few days ago, whats wrong with it?
__________________
Kia is offline
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 07-16-2013 , 13:30   Re: Chattags
Reply With Quote #13

No? You send me nothing, i don't even know or asked you.
And thats not what i requested

Last edited by UchihaSkills; 07-16-2013 at 13:43.
UchihaSkills is offline
Pastout
Senior Member
Join Date: Dec 2010
Location: 1337 Street LeetTown
Old 07-16-2013 , 19:56   Re: Chattags
Reply With Quote #14

Quote:
Originally Posted by Kia View Post
PHP Code:
/* Plugin generated by AMXX-Studio */
 
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
 
#define PLUGIN "ChatTag"
#define VERSION "1.0"
#define AUTHOR "Kia"
 
/*
; n - custom level B
; o - custom level C
; p - custom level D
; q - custom level E
; r - custom level F
; s - custom level G
; t - custom level H
*/
 
public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
register_clcmd("say""handle_say");    
}
 
public 
handle_say(id)
{
    new 
message[500];
    
read_args(message,499);
    
remove_quotes(message); 
 
    if(
message[0])
    {
        new 
szName[32];
        
get_user_name(idszName31);
        if(
is_user_alive(id))
        {
            if (
get_user_flags(id) & ADMIN_IMMUNITY)
            {
 
                
print_color(0id0"^x04[Admin] ^x03%s^x04: %s"szNamemessage)
            }
 
            else if (
get_user_flags(id) & ADMIN_BAN)
            {
                
print_color(0id0"^x04[Trial-Admin] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_B)
            {
                
print_color(0id0"^x04[Member] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_C)
            {
                
print_color(0id0"^x04[Trial-Member] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_D)
            {
                
print_color(0id0"^x04[VIP] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_E)
            {
                
print_color(0id0"^x04[Stammi] ^x03%s^x01: %s"szNamemessage)
            }
            else
            {
                
print_color(0id0"^x04[User] ^x03%s^x01: %s"szNamemessage)
            }
        }
        else
        {
            if (
get_user_flags(id) & ADMIN_IMMUNITY)
            {
                
print_color(0id0"^x01*DEAD* ^x04[Admin] ^x03%s^x04: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_BAN)
            {
                
print_color(0id0"^x01*DEAD* ^x04[Trial-Admin] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_B)
            {
                
print_color(0id0"^x01*DEAD* ^x04[Member] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_C)
            {
                
print_color(0id0"^x01*DEAD* ^x04[Trial-Member] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_D)
            {
                
print_color(0id0"^x01*DEAD* ^x04[VIP] ^x03%s^x01: %s"szNamemessage)
            }
            else if (
get_user_flags(id) & ADMIN_LEVEL_E)
            {
                
print_color(0id0"^x01*DEAD* ^x04[Stammi] ^x03%s^x01: %s"szNamemessage)
            }
            else
            {
                
print_color(0id0"^x01*DEAD* ^x04[User] ^x03%s^x01: %s"szNamemessage)
            }
        }
        return 
PLUGIN_HANDLED_MAIN
    
}
    return 
PLUGIN_CONTINUE
}
 
public 
handle_say_team(id)
{
    new 
message[500];
    
read_args(message,499);
    
remove_quotes(message); 
    if(
message[0])
    {
 
        new 
szName[32];
        
get_user_name(idszName31);
 
        new 
iPlayers[32],iNum;
        
get_players(iPlayersiNum)
        for(new 
i=0;i<=iNum;i++)
        {
            new 
id2 iPlayers[i]
            if (
id2 && cs_get_user_team(id) == cs_get_user_team(id2))
            {
                if(
is_user_alive(id))
                {
                    if (
get_user_flags(id) & ADMIN_IMMUNITY)
                    {
                        
print_color(id2id0"^x04[Admin] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                    }
                    else
                    {
                        
print_color(id2id0"^x04[User] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                    }
                }
                else if (
get_user_flags(id) & ADMIN_BAN)
                {
                    
print_color(id2id0"^x04[Trial-Admin] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_B)
                {
                    
print_color(id2id0"^x04[Member] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_C)
                {
                    
print_color(id2id0"^x04[Trial-Member] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_D)
                {
                    
print_color(id2id0"^x04[VIP] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_E)
                {
                    
print_color(id2id0"^x04[Stammi] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else
                {
                    
print_color(id2id0"^x04[User] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
            }
            else
            {
                if (
get_user_flags(id) & ADMIN_IMMUNITY)
                {
                    
print_color(id2id0"^x01*DEAD* ^x04[Admin] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
 
                else if (
get_user_flags(id) & ADMIN_BAN)
                {
                    
print_color(id2id0"^x01*DEAD* ^x04[Trial-Admin] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_B)
                {
                    
print_color(id2id0"^x01*DEAD* ^x04[Member] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_C)
                {
                    
print_color(id2id0"^x01*DEAD* ^x04[Trial-Member] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_D)
                {
                    
print_color(id2id0"^x01*DEAD* ^x04[VIP] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else if (
get_user_flags(id) & ADMIN_LEVEL_E)
                {
                    
print_color(id2id0"^x01*DEAD* ^x04[Stammi] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
                else
                {
                    
print_color(id2id0"^x01*DEAD* ^x04[User] ^x01(Team)^x03%s^x01: %s"szNamemessage)
                }
            }
        }
        return 
PLUGIN_HANDLED_MAIN
    
}
    return 
PLUGIN_HANDLED
}
 
 
public 
print_color(idcidcolor, const message[], any:...)
{
    new 
msg[192]
    
vformat(msgcharsmax(msg), message5)
    
/*      //if you want to use ML, enable
    replace_all(msg, charsmax(msg), "!g", "^x04")
    replace_all(msg, charsmax(msg), "!n", "^x01")
    replace_all(msg, charsmax(msg), "!t", "^x03")*/
    
new param
    
if (!cid) return
    else 
param cid
    
new team[32]
    
get_user_team(paramteam31)
    switch (
color)
    {
        case 
0msg_teaminfo(paramteam)
            case 
1msg_teaminfo(param"TERRORIST")
            case 
2msg_teaminfo(param"CT")
            case 
3msg_teaminfo(param"SPECTATOR")
        }
    if (
idmsg_saytext(idparammsg)
    else 
msg_saytext(0parammsg)
    if (
color != 0msg_teaminfo(paramteam)
}
 
msg_saytext(idcidmsg[])
{
message_begin(id?MSG_ONE:MSG_ALLget_user_msgid("SayText"), {0,0,0}, id)
write_byte(cid)
write_string(msg)
message_end()
}
 
msg_teaminfo(idteam[])
{
message_begin(MSG_ONEget_user_msgid("TeamInfo"), {0,0,0}, id)
write_byte(id)
write_string(team)
message_end()
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1031\\ f0\\ fs16 \n\\ par }
*/ 
Hey kia I know you are only trying to help but that's awful coding I hope you normally don't code like that.

Last edited by Pastout; 07-16-2013 at 19:58.
Pastout is offline
Kia
AlliedModders Donor
Join Date: Apr 2010
Location: In a world of madness
Old 07-17-2013 , 00:44   Re: Chattags
Reply With Quote #15

No, not really, had this code here so I posted it.
__________________
Kia is offline
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 07-17-2013 , 15:28  
Reply With Quote #16

Nice Pastout, and his Plugin isnt even what i requested, it has more than i acutally requested.


MERGE EDIT:
Well, Kia send his code but i wont use it cause its bad and not what i requested, i dont want to bump it but i just want to say that its still my request. Maybe u think its done cause Kia sends his code but no its not.

Last edited by YamiKaitou; 07-19-2013 at 12:31.
UchihaSkills 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 00:11.


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