Reklam gösterimini engelleyici yazılım kullandığınızı görüyoruz.
Sitemizin ayakta kalıp sizlere hizmet edebilmek için en büyük gelir kaynağı sayfamızda gösterilen reklamlardır.
Reklam gösterimde bizim sayfamıza ayrıcalık tanıyarak ayakta kalmamıza destek olmak ister misiniz ?

Silinmiş Konu   | Yesil yazi tag istk

Konu

#1
s.a beyler merhaba istk bir pulginim var çok lazım yapabılıen olrsa tşk 

pulgin şoyle olck 


[SLOT-1] / Yetki Kodu = b
[SLOT-2] / Yetki Kodu = bi
[SLOT-3] / Yetki Kodu = bip
[SLOT-4] / Yetki Kodu = biop
[SLOT-5] / Yetki Kodu = bijop
[SLOT-6] / Yetki Kodu = bijfop
[SLOT-7] / Yetki Kodu = befijuop
[SLOT-ADMIN] / Yetki Kodu = befijunopr
[SLOT-CAPTAN] / Yetki Kodu = befijunoprs
[SLOT-CAPTAN] / Yetki Kodu = befijunoprs
[NORMAL ADMIN] / Yetki Kodu = befijunoprst
[YONETIM] / Yetki Kodu = bcefijunoprs


#2
Çok Güzel Olmuş Ellerine Sağlık Kardeşim.


Bir Gece Ansızın Gelir Krallığınızı İmparatorluğuma Katarım.             - Fatih Sultan Mehmet. 

 [- TuraN CLaN Ailesi ( 173.35 )-]
#3
Bu Pulgin Olck Sma


#4
@ reXahen`S boş yorumlar yapmayın burası eklenti istek



#5
csgo mod oynarsan beklerim 95.173.173.35


Bir Gece Ansızın Gelir Krallığınızı İmparatorluğuma Katarım.             - Fatih Sultan Mehmet. 

 [- TuraN CLaN Ailesi ( 173.35 )-]
#6
@garga23412312

Buyur;

PHP Kod:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN             "Admin Yesil Yazi & Adminlerde Tag"
#define VERSION         "2.2"
#define AUTHOR             "EDITLEYEN: Optimist"

#define ACCESS_LEVEL    ADMIN_IMMUNITY
#define ADMIN_LISTEN    ADMIN_LEVEL_C

new message[192]
new 
sayText
new teamInfo
new maxPlayers

new g_MessageColor
new g_NameColor
new g_AdminListen

new strName[191]
new 
strText[191]
new 
alive[11]

new const 
g_szTag[][] = {
    
    
"[ SLOT-1 ]",
    
"[ SLOT-2 ]",
    
"[ SLOT-3 ]",
    
"[ SLOT-4 ]",
    
"[ SLOT-5 ]",
    
"[ SLOT-6 ]",
    
"[ SLOT-7 ]",
    
"[ SLOT ADMIN ]",
    
"[ SLOT CAPTAN ]",
    
"[ NORMAL ADMIN ]",
    
"[ YONETIM ]"
}

new const 
g_iTagFlag[sizeof(g_szTag)] = {
    
    
ADMIN_RESERVATION,
    
ADMIN_CHAT,
    
ADMIN_LEVEL_D,
    
ADMIN_LEVEL_C,
    
ADMIN_VOTE,
    
ADMIN_MAP,
    
ADMIN_SLAY,
    
ADMIN_LEVEL_F,
    
ADMIN_LEVEL_G,
    
ADMIN_LEVEL_H,
    
ADMIN_KICK,
    
}

public 
plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
g_MessageColor register_cvar("amx_color""3"
    
g_NameColor register_cvar("amx_namecolor""5"
    
g_AdminListen register_cvar("amx_listen""1")
    
    
    
sayText get_user_msgid("SayText")
    
teamInfo get_user_msgid("TeamInfo")
    
maxPlayers get_maxplayers()
    
    
    
register_message(sayText"avoid_duplicated")
    
    
register_concmd("amx_color""set_color"ACCESS_LEVEL"<color>")
    
register_concmd("amx_namecolor""set_name_color"ACCESS_LEVEL"<color>")
    
register_concmd("amx_listen""set_listen"ACCESS_LEVEL"<1 | 0>")
    
register_clcmd("say""hook_say")
    
register_clcmd("say_team""hook_teamsay")
}


public 
avoid_duplicated(msgIdmsgDestreceiver)
{
    return 
PLUGIN_HANDLED
}

get_tag_index(id)
{
new 
flags get_user_flags(id)

for(new 
1sizeof(g_iTagFlag); i++)
{
    if(
check_admin_flag(flagsg_iTagFlag[i]))
    {
        return 
i
    
}
}

return 
0
}

check_admin_flag(flagsflag)
{
if(
flag == ADMIN_ADMIN)
{
return ((
flags & ~ADMIN_USER) > 0)
}
else if(
flag == ADMIN_ALL)
{
return 
1
}

return (
flags flag)
}

public 
hook_say(id)
{
read_args(message191)
remove_quotes(message)


if(
message[0] == '@' || message[0] == '/' || message[0] == '!' || equal(message"")) 
return 
PLUGIN_CONTINUE

new name[32]
get_user_name(idname31)

new 
admin get_tag_index(id)

new 
isAlive

if(is_user_alive(id))
{
    
isAlive 1
    alive 
"^x01"
}
else
{
    
isAlive 0
    alive 
"^x01*DEAD* "
}

static 
color[10]

if(
admin)
{
    
// İsim
    
switch(get_pcvar_num(g_NameColor))
    {
        case 
1:
            
format(strName191"^x04%s %s%s"g_szTag[admin], alivename)
            case 
2:
                
format(strName191"^x04%s %s^x04%s "g_szTag[admin], alivename)
            case 
3:
            {
                
color "SPECTATOR"
                
format(strName191"^x04%s %s^x03%s "g_szTag[admin], alivename)
            }
            case 
4:
            {
                
color "CT"
                
format(strName191"^x04%s %s^x03%s"g_szTag[admin], alivename)
            }
            case 
5:
            {
                
color "TERRORIST"
                
format(strName191"^x04%s %s^x03%s"g_szTag[admin], alivename)
            }
            case 
6:
            {
                
get_user_team(idcolor9)
                
format(strName191"^x04%s %s^x03%s"g_szTag[admin], alivename)
            }
        }
        
        
// Mesaj
    
switch(get_pcvar_num(g_MessageColor))
        {
            case 
1:    // Sari
                
format(strText191"%s"message)
            case 
2:    // Yesil
                
format(strText191"^x04%s"message)
            case 
3:    // Beyaz
            
{
                
copy(color9"SPECTATOR")
                
format(strText191"^x03%s"message)
            }
            case 
4:    // Mavi
            
{
                
copy(color9"CT")
                
format(strText191"^x03%s"message)
            }
            case 
5:    // Kirmizi
            
{
                
copy(color9"TERRORIST")
                
format(strText191"^x03%s"message)
            }
        }
    }
    else     
    {
        
get_user_team(idcolor9)
        
format(strName191"%s^x03%s"alivename)
        
format(strText191"%s"message)
    }
format(message191"%s^x01 :  %s"strNamestrText)
    
sendMessage(colorisAlive)    
    
return 
PLUGIN_CONTINUE
}


public 
hook_teamsay(id)
{
    new 
playerTeam get_user_team(id)
    new 
playerTeamName[19]
    
    switch(
playerTeam
    {
        case 
1:
            
copy(playerTeamName11"Terrorists")
        
        case 
2:
            
copy(playerTeamName18"Counter-Terrorists")
        
        default:
        
copy(playerTeamName9"Spectator")
    }
    
    
read_args(message191)
    
remove_quotes(message)
    
    
    if(
message[0] == '@' || message[0] == '/' || message[0] == '!' || equal(message"")) 
        return 
PLUGIN_CONTINUE
    
    
new name[32]
    
get_user_name(idname31)
    
    new 
admin get_tag_index(id)
    
    new 
isAlive
    
    
if(is_user_alive(id))
    {
        
isAlive 1
        alive 
"^x01"
    
}
    else
    {
        
isAlive 0
        alive 
"^x01*DEAD* "
    
}
    
    static 
color[10]
    
    if(
admin)
    {
        
// İsim
        
switch(get_pcvar_num(g_NameColor))
        {
            case 
1:
                
format(strName191"%s(%s)^x04%s %s"aliveplayerTeamNameg_szTag[admin], name)
            case 
2:
                
format(strName191"%s(%s)^x04%s ^x04%s"aliveplayerTeamNameg_szTag[admin], name)
            case 
3:
            {
                
color "SPECTATOR"
                
format(strName191"%s(%s)^x04%s ^x03%s"aliveplayerTeamNameg_szTag[admin], name)
            }
            case 
4:
            {
                
color "CT"
                
format(strName191"%s(%s)^x04%s ^x03%s"aliveplayerTeamNameg_szTag[admin], name)
            }
            case 
5:
            {
                
color "TERRORIST"
                
format(strName191"%s(%s)^x04%s ^x03%s"aliveplayerTeamNameg_szTag[admin], name)
            }
            case 
6:
            {
                
get_user_team(idcolor9)
                
format(strName191"%s(%s)^x04%s ^x03%s"aliveplayerTeamNameg_szTag[admin], name)
            }
        }
        
        
// Message
        
switch(get_pcvar_num(g_MessageColor))
        {
            case 
1:    // Sari
                
format(strText191"%s"message)
            case 
2:    // Yesil
                
format(strText191"^x04%s"message)
            case 
3:    // Beyaz
            
{
                
copy(color9"SPECTATOR")
                
format(strText191"^x03%s"message)
            }
            case 
4:    // Mavi
            
{
                
copy(color9"CT")
                
format(strText191"^x03%s"message)
            }
            case 
5:    // Kirmizi
            
{
                
copy(color9"TERRORIST")
                
format(strText191"^x03%s"message)
            }
        }
    }
    else     
    {
        
get_user_team(idcolor9)
        
format(strName191"%s(%s) ^x03%s"aliveplayerTeamNamename)
        
format(strText191"%s"message)
    }
    
    
format(message191"%s ^x01:  %s"strNamestrText)
    
    
sendTeamMessage(colorisAliveplayerTeam)    
    
    return 
PLUGIN_CONTINUE
}


public 
set_color(idlevelcid)
{
    if(!
cmd_access(idlevelcid2))
        return 
PLUGIN_HANDLED
    
    
new arg[1], newColor
    read_argv
(1arg1)
    
    
newColor str_to_num(arg)
    
    if(
newColor >= && newColor <= 5)
    {
        
set_pcvar_num(g_MessageColornewColor)
        
        if(
get_pcvar_num(g_NameColor) != &&
        ((
newColor == &&  get_pcvar_num(g_NameColor) != 3)
        ||(
newColor == &&  get_pcvar_num(g_NameColor) != 4)
        ||(
newColor == &&  get_pcvar_num(g_NameColor) != 5)))
    {
        
set_pcvar_num(g_NameColor2)
    }
}

    return 
PLUGIN_HANDLED
}


public 
set_name_color(idlevelcid)
{
if(!
cmd_access(idlevelcid2))
    return 
PLUGIN_HANDLED
    
new arg[1], newColor
read_argv
(1arg1)
    
newColor str_to_num(arg)
if(
newColor >= && newColor <= 6)
    {
        
set_pcvar_num(g_NameColornewColor)
        
        if((
get_pcvar_num(g_MessageColor) != 1
        
&&((newColor == &&  get_pcvar_num(g_MessageColor) != 3)
        ||(
newColor == &&  get_pcvar_num(g_MessageColor) != 4)
        ||(
newColor == &&  get_pcvar_num(g_MessageColor) != 5)))
        || 
get_pcvar_num(g_NameColor) == 6)
    {
        
set_pcvar_num(g_MessageColor2)
    }
}

return 
PLUGIN_HANDLED
}


public 
set_listen(idlevelcid)
{
if(!
cmd_access(idlevelcid2))
    return 
PLUGIN_HANDLED
    
new arg[1], newListen
read_argv
(1arg1)
    
newListen str_to_num(arg)
    
set_pcvar_num(g_AdminListennewListen)
    
return 
PLUGIN_HANDLED
}


public 
sendMessage(color[], alive)
{
    new 
teamName[10]
    
    for(new 
player 1player maxPlayersplayer++)
    {
        if(!
is_user_connected(player))
            continue
        
        if(
alive && is_user_alive(player) || !alive && !is_user_alive(player) || get_pcvar_num(g_AdminListen) && get_user_flags(player) & ADMIN_LISTEN)
        {
            
get_user_team(playerteamName9)
            
changeTeamInfo(playercolor)
            
writeMessage(playermessage)
            
changeTeamInfo(playerteamName)
        }
    }
}


public 
sendTeamMessage(color[], aliveplayerTeam)
{
    new 
teamName[10]
    
    for(new 
player 1player maxPlayersplayer++)
    {
        if(!
is_user_connected(player))
            continue
        
        if(
get_user_team(player) == playerTeam || get_pcvar_num(g_AdminListen) && get_user_flags(player) & ADMIN_LISTEN)
        {
            if(
alive && is_user_alive(player) || !alive && !is_user_alive(player) || get_pcvar_num(g_AdminListen) && get_user_flags(player) & ADMIN_LISTEN)
            {
                
get_user_team(playerteamName9)
                
changeTeamInfo(playercolor)
                
writeMessage(playermessage)
                
changeTeamInfo(playerteamName)
            }
        }
    }
}


public 
changeTeamInfo(playerteam[])
{
    
message_begin(MSG_ONEteamInfo_player
    
write_byte(player)                
    
write_string(team)                
    
message_end()                   
}


public 
writeMessage(playermessage[])
{
    
message_begin(MSG_ONEsayText, {000}, player)    
    
write_byte(player)                   
    
write_string(message)                    
    
message_end()                        
}  
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par }
*/ 




#7
Dener misin kendim kodladım 
@garga23412312
PHP Kod:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#if defined _cromchat_included
#endinput
#endif

#define _cromchat_included

#if !defined CC_DONT_OVERWRITE_183_PRINT
#define client_print_color CC_SendMatched
#define print_team_default CC_COLOR_TEAM
#define print_team_grey CC_COLOR_GREY
#define print_team_blue CC_COLOR_BLUE
#define print_team_red CC_COLOR_RED
#endif

#if !defined CC_DONT_OVERWRITE_COLORCHAT
#define ColorChat CC_SendMatched
#define NORMAL CC_COLOR_TEAM
#define TEAM_COLOR CC_COLOR_TEAM
#define GREEN CC_COLOR_TEAM
#define GREY CC_COLOR_GREY
#define BLUE CC_COLOR_BLUE
#define RED CC_COLOR_RED
#endif

#if !defined CC_DONT_OVERWRITE_ACTIVITY
#define show_activity CC_ShowActivity
#define show_activity_id CC_ShowActivityId
#define show_activity_key CC_ShowActivityKey
#endif

#define CC_VERSION                     2.1
#define CC_MAX_TEAM_SIZE             10
#define CC_MAX_ACT_PREFIX_SIZE         10
#define CC_MAX_PLAYERS                 32
#define CC_MAX_PREFIX_SIZE             64
#define CC_MAX_MESSAGE_SIZE         188
#define CC_FILTERING_FLAGS            "ch"
#define CromChat                     CC_SendMessage

#if !defined CC_COLORS_TYPE
#define CC_COLORS_TYPE CC_COLORS_CROMCHAT
#endif

#if !defined CC_ACTIVITY_FLAG
#define CC_ACTIVITY_FLAG -1
#endif

#if !defined CC_ACTIVITY_PREFIX_PLAYER
#define CC_ACTIVITY_PREFIX_PLAYER "PLAYER"
#endif

#if !defined CC_ACTIVITY_PREFIX_ADMIN
#define CC_ACTIVITY_PREFIX_ADMIN "ADMIN"
#endif

enum
{
CC_COLOR_TEAM         0,
CC_COLOR_GREY         = -1,
CC_COLOR_WHITE         = -1,
CC_COLOR_BLUE         = -2,
CC_COLOR_RED         = -3
}

enum
{
CC_COLORS_CROMCHAT,
CC_COLORS_SHORT,
CC_COLORS_NAMED,
CC_COLORS_NAMED_SHORT,
CC_COLORS_STANDARD,
CC_COLORS_CUSTOM
}

#define CC_SYM_MENU_YELLOW             "\y"
#define CC_SYM_MENU_WHITE             "\w"
#define CC_SYM_MENU_GREY             "\d"
#define CC_SYM_MENU_RIGHT             "\R"

#define CC_SYM_CHAT_DEF_NORMAL         "^x01"
#define CC_SYM_CHAT_DEF_TEAM         "^x03"
#define CC_SYM_CHAT_DEF_GREEN         "^x04"

#define CC_SYM_TEAM_T                 "TERRORIST"
#define CC_SYM_TEAM_CT                 "CT"
#define CC_SYM_TEAM_SPEC             "SPECTATOR"

#define CC_ACTIVITY_CVAR             "amx_show_activity"
#define CC_ACTIVITY_CVAR_DEF         "2"
#define CC_ACTIVITY_CVAR_TYPE        FCVAR_PROTECTED

new CC_PREFIX[CC_MAX_PREFIX_SIZE], bool:CC_FIRST_TIME truebool:CC_FIRST_TIME_ACTIVITY trueCC_ACTIVITY_POINTERCC_MSG_SAYTEXTCC_MSG_TEAMINFO
new const CC_MENU_COLORS[][] = { CC_SYM_MENU_YELLOWCC_SYM_MENU_WHITECC_SYM_MENU_GREYCC_SYM_MENU_RIGHT }

#if CC_COLORS_TYPE == CC_COLORS_CUSTOM
#if !defined CC_SYM_CHAT_NORMAL
#define CC_SYM_CHAT_NORMAL         "&x01"
#endif

#if !defined CC_SYM_CHAT_TEAM
#define CC_SYM_CHAT_TEAM         "&x03"
#endif

#if !defined CC_SYM_CHAT_GREEN
#define CC_SYM_CHAT_GREEN        "&x04"
#endif

#if !defined CC_SYM_CHAT_WHITE
#define CC_SYM_CHAT_WHITE        "&x05"
#endif

#if !defined CC_SYM_CHAT_BLUE
#define CC_SYM_CHAT_BLUE         "&x06"
#endif

#if !defined CC_SYM_CHAT_RED
#define CC_SYM_CHAT_RED            "&x07"
#endif

#if !defined CC_SYM_CHAT_NOPREF
#define CC_SYM_CHAT_NOPREF        "&x00"
#endif
#else    
#if CC_COLORS_TYPE == CC_COLORS_CROMCHAT
#define CC_SYM_CHAT_NORMAL         "&x01"
#define CC_SYM_CHAT_TEAM         "&x03"
#define CC_SYM_CHAT_GREEN         "&x04"
#define CC_SYM_CHAT_WHITE         "&x05"
#define CC_SYM_CHAT_BLUE         "&x06"
#define CC_SYM_CHAT_RED         "&x07"
#define CC_SYM_CHAT_NOPREF         "&x00"
#endif

#if CC_COLORS_TYPE == CC_COLORS_SHORT
#define CC_SYM_CHAT_NORMAL         "!n"
#define CC_SYM_CHAT_TEAM         "!t"
#define CC_SYM_CHAT_GREEN         "!g"
#define CC_SYM_CHAT_WHITE         "!w"
#define CC_SYM_CHAT_BLUE         "!b"
#define CC_SYM_CHAT_RED         "!r"
#define CC_SYM_CHAT_NOPREF         "!p"
#endif

#if CC_COLORS_TYPE == CC_COLORS_NAMED
#define CC_SYM_CHAT_NORMAL         "{normal}"
#define CC_SYM_CHAT_TEAM         "{team}"
#define CC_SYM_CHAT_GREEN         "{green}"
#define CC_SYM_CHAT_WHITE         "{white}"
#define CC_SYM_CHAT_BLUE         "{blue}"
#define CC_SYM_CHAT_RED         "{red}"
#define CC_SYM_CHAT_NOPREF         "{nopref}"
#endif

#if CC_COLORS_TYPE == CC_COLORS_NAMED_SHORT
#define CC_SYM_CHAT_NORMAL         "{n}"
#define CC_SYM_CHAT_TEAM         "{t}"
#define CC_SYM_CHAT_GREEN         "{g}"
#define CC_SYM_CHAT_WHITE         "{w}"
#define CC_SYM_CHAT_BLUE         "{b}"
#define CC_SYM_CHAT_RED         "{r}"
#define CC_SYM_CHAT_NOPREF         "{p}"
#endif

#if CC_COLORS_TYPE == CC_COLORS_STANDARD
#define CC_SYM_CHAT_NORMAL         "^1"
#define CC_SYM_CHAT_TEAM         "^3"
#define CC_SYM_CHAT_GREEN         "^4"
#define CC_SYM_CHAT_WHITE         "^5"
#define CC_SYM_CHAT_BLUE         "^6"
#define CC_SYM_CHAT_RED         "^7"
#define CC_SYM_CHAT_NOPREF         "^0"
#endif
#endif

new const CC_REPLACE_COLORS[][] = { CC_SYM_CHAT_GREENCC_SYM_CHAT_DEF_GREENCC_SYM_CHAT_TEAMCC_SYM_CHAT_DEF_TEAMCC_SYM_CHAT_NORMALCC_SYM_CHAT_DEF_NORMAL }
new const 
CC_PLUS_COLORS[][] = { CC_SYM_CHAT_REDCC_SYM_TEAM_TCC_SYM_CHAT_BLUECC_SYM_TEAM_CTCC_SYM_CHAT_WHITECC_SYM_TEAM_SPEC }
new const 
CC_COLORS_LIST[][] = { CC_SYM_CHAT_REDCC_SYM_CHAT_BLUECC_SYM_CHAT_WHITECC_SYM_CHAT_GREENCC_SYM_CHAT_TEAMCC_SYM_CHAT_NORMALCC_SYM_CHAT_NOPREF }
new const 
CC_NO_PREFIX[] = CC_SYM_CHAT_NOPREF
stock CC_SendMessage
(const id, const szInput[], any:...)
{
static 
iPlayers[CC_MAX_PLAYERS], iPnum

if(id)
{
if(!
is_user_connected(id))
    return 
0
}
else
{
    
get_players(iPlayersiPnumCC_FILTERING_FLAGS)
    
    if(!
iPnum)
        return 
0
    
}
    
    static 
szMessage[CC_MAX_MESSAGE_SIZE], szTeam[CC_MAX_TEAM_SIZE], bool:bNoPrefixi
    vformat
(szMessage[1], charsmax(szMessage), szInput3)
    
szMessage[0] = 0x01
    szTeam
[0] = EOS
    
    bNoPrefix 
bool:(equal(szMessage[1], CC_NO_PREFIXcharsmax(CC_NO_PREFIX)) || equal(szMessage[2], CC_NO_PREFIXcharsmax(CC_NO_PREFIX)))
    
    if(
bNoPrefix)
        
replace(szMessagecharsmax(szMessage), CC_NO_PREFIX"")
    else if(
CC_PREFIX[0])
        
format(szMessagecharsmax(szMessage), "%s%s %s%s"CC_SYM_CHAT_DEF_NORMALCC_PREFIXCC_SYM_CHAT_DEF_NORMALszMessage)
    
    for(
0sizeof(CC_REPLACE_COLORS) - 1+= 2)
        
replace_all(szMessagecharsmax(szMessage), CC_REPLACE_COLORS[i], CC_REPLACE_COLORS[1])
    
    for(
0sizeof(CC_PLUS_COLORS) - 1+= 2)
    {
        if(
contain(szMessageCC_PLUS_COLORS[i]) != -1)
        {
            
copy(szTeamcharsmax(szTeam), CC_PLUS_COLORS[1])
            break
        }
    }
    
    if(
szTeam[0])
    {
        for(
03i++)
            
replace_all(szMessagecharsmax(szMessage), CC_COLORS_LIST[i], CC_SYM_CHAT_DEF_TEAM)
    }
    
    if(
id)
        
_CC_WriteMessage(idszMessageszTeam)
    else
    {
        for(
0iPnumi++)
            
_CC_WriteMessage(iPlayers[i], szMessageszTeam)
    }
    
    return 
strlen(szMessage)
}
stock CC_SendMatched(const id, const iPlayer, const szInput[], any:...)
{
    static 
szMessage[CC_MAX_MESSAGE_SIZE], bool:bPlusi
    vformat
(szMessage[1], charsmax(szMessage), szInput4)
    
szMessage[0] = 0x01
    bPlus 
false
    
    
for(0sizeof(CC_PLUS_COLORS) - 1+= 2)
    {
        if(
contain(szMessageCC_PLUS_COLORS[i]) != -1)
        {
            
bPlus true
            
break
        }
    }
    
    if(!
bPlus)
    {
        static 
iColor
        
        
if(is_user_connected(iPlayer))
        {
            switch(
get_user_team(iPlayer))
            {
                case 
1iColor CC_COLOR_RED
                    
case 2iColor CC_COLOR_BLUE
                    
default: iColor CC_COLOR_GREY
            
}
        }
        else
            
iColor iPlayer
        
        
switch(iColor)
        {
            case 
CC_COLOR_REDadd(szMessagecharsmax(szMessage), CC_COLORS_LIST[0])
                case 
CC_COLOR_BLUEadd(szMessagecharsmax(szMessage), CC_COLORS_LIST[1])
                case 
CC_COLOR_GREYadd(szMessagecharsmax(szMessage), CC_COLORS_LIST[2])
            }
    }
    
    return 
CC_SendMessage(idszMessage)
}

stock CC_GroupMessage(const szFlags[] = "", const szParams[] = "", const szInput[], any:...)
{
    static 
szMessage[CC_MAX_MESSAGE_SIZE], iPlayers[CC_MAX_PLAYERS], iPnum
    vformat
(szMessagecharsmax(szMessage), szInput4)
    
get_players(iPlayersiPnumszFlagsszParams)
    
    if(!
iPnum)
        return 
0
    
    
static i
    
    
for(0iPnumi++)
        
CC_SendMessage(iPlayers[i], szMessage)
    
    return 
strlen(szMessage)
}
stock CC_SendAdminMessage(const szFlags[] = "", const bool:bAllFlags true, const szInput[], any:...)
{
    static 
szMessage[CC_MAX_MESSAGE_SIZE], iPlayers[CC_MAX_PLAYERS], iPnum
    vformat
(szMessagecharsmax(szMessage), szInput4)
    
get_players(iPlayersiPnumCC_FILTERING_FLAGS)
    
    if(!
iPnum)
        return 
0
    
    
static iCountiFlagsiPlayeri
    iFlags 
read_flags(szFlags)
    
iCount 0
    
    
for(0iPnumi++)
    {
        
iPlayer iPlayers[i]
        
        switch(
bAllFlags)
        {
            case 
true:
            {
                if(
get_user_flags(iPlayer) & iFlags != iFlags)
                    continue
            }
            case 
false:
            {
                if(!(
get_user_flags(iPlayer) & iFlags))
                    continue
            }
        }
        
        
iCount++
        
CC_SendMessage(iPlayerszMessage)
    }
    
    if(!
iCount)
        return 
0
    
    
return strlen(szMessage)
}
stock CC_LogMessage(const id, const szFile[] = "", const szInput[], any:...)
{
    static 
szMessage[CC_MAX_MESSAGE_SIZE]
    
vformat(szMessagecharsmax(szMessage), szInput4)
    
    if(!
CC_SendMessage(idszMessage))
        return 
0
    
    CC_RemoveColors
(szMessagecharsmax(szMessage))
    
szFile[0] ? log_to_file(szFileszMessage) : log_amx(szMessage)
    return 
strlen(szMessage)
}
stock CC_ShowActivity(id, const szName[], const szInput[], any:...)
{
    if(
CC_FIRST_TIME_ACTIVITY)
        
_CC_ActivityInit()
    
    static 
szMessage[CC_MAX_MESSAGE_SIZE], szPrefix[CC_MAX_ACT_PREFIX_SIZE], iPlayers[CC_MAX_PLAYERS], iPlayeriPnumi
    vformat
(szMessagecharsmax(szMessage), szInput4)
    
_CC_GetActivityPrefix(idszPrefixcharsmax(szPrefix))
    
    switch(
get_pcvar_num(CC_ACTIVITY_POINTER))
    {
        case 
1CC_SendMessage(0"%L: %s"LANG_PLAYERszPrefixszMessage)
            case 
2CC_SendMessage(0"%L %s: %s"LANG_PLAYERszPrefixszNameszMessage)
            case 
3:
        {
            
get_players(iPlayersiPnumCC_FILTERING_FLAGS)
            
            for(
0iPnumi++)
            {
                
iPlayer iPlayers[i]
                
                if(
_CC_IsActivityAdmin(iPlayer))
                    
CC_SendMessage(iPlayer"%L %s: %s"iPlayerszPrefixszNameszMessage)
                else
                    
CC_SendMessage(iPlayer"%L: %s"iPlayerszPrefixszMessage)
            }
        }
        case 
4:
        {
            
get_players(iPlayersiPnumCC_FILTERING_FLAGS)
            
            for(
0iPnumi++)
            {
                
iPlayer iPlayers[i]
                
                if(
_CC_IsActivityAdmin(iPlayer))
                    
CC_SendMessage(iPlayer"%L %s: %s"iPlayerszPrefixszNameszMessage)
            }
        }
        case 
5:
        {
            
get_players(iPlayersiPnumCC_FILTERING_FLAGS)
            
            for(
0iPnumi++)
            {
                
iPlayer iPlayers[i]
                
                if(
_CC_IsActivityAdmin(iPlayer))
                    
CC_SendMessage(iPlayer"%L: %s"iPlayerszPrefixszMessage)
            }
        }
    }
}
stock CC_ShowActivityId(iTargetid, const szName[], const szInput[], any:...)
{
    if(!
is_user_connected(iTarget))
        return
    
    if(
CC_FIRST_TIME_ACTIVITY)
        
_CC_ActivityInit()
    
    static 
szMessage[CC_MAX_MESSAGE_SIZE], szPrefix[CC_MAX_ACT_PREFIX_SIZE]
    
vformat(szMessagecharsmax(szMessage), szInput5)
    
_CC_GetActivityPrefix(idszPrefixcharsmax(szPrefix))
    
    switch(
get_pcvar_num(CC_ACTIVITY_POINTER))
    {
        case 
1CC_SendMessage(iTarget"%L: %s"iTargetszPrefixszMessage)
            case 
2CC_SendMessage(iTarget"%L %s: %s"iTargetszPrefixszNameszMessage)
            case 
3:
        {
            if(
_CC_IsActivityAdmin(iTarget))
                
CC_SendMessage(iTarget"%L %s: %s"iTargetszPrefixszNameszMessage)
            else
                
CC_SendMessage(iTarget"%L: %s"iTargetszPrefixszMessage)
        }
        case 
4:
        {
            if(
_CC_IsActivityAdmin(iTarget))
                
CC_SendMessage(iTarget"%L %s: %s"iTargetszPrefixszNameszMessage)
        }
        case 
5:
        {
            if(
_CC_IsActivityAdmin(iTarget))
                
CC_SendMessage(iTarget"%L: %s"iTargetszPrefixszMessage)
        }
    }
}
stock CC_ShowActivityKey(const szWithout[], const szWith[], const szName[], any:...)
{
    
#pragma unused szName
    
    
if(CC_FIRST_TIME_ACTIVITY)
        
_CC_ActivityInit()
    
    static 
szMessage[CC_MAX_MESSAGE_SIZE], szKey[CC_MAX_MESSAGE_SIZE], iPlayers[CC_MAX_PLAYERS], iPnumiPlayeri
    
    
switch(get_pcvar_num(CC_ACTIVITY_POINTER))
    {
        case 
1:
        {
            
get_players(iPlayersiPnumCC_FILTERING_FLAGS)
            
            for(
0iPnumi++)
            {
                
iPlayer iPlayers[i]
                
                
LookupLangKey(szKeycharsmax(szKey), szWithoutiPlayer)
                
vformat(szMessagecharsmax(szMessage), szKey4)
                
CC_SendMessage(iPlayerszMessage)
            }
        }
        case 
2:
        {
            
get_players(iPlayersiPnumCC_FILTERING_FLAGS)
            
            for(
0iPnumi++)
            {
                
iPlayer iPlayers[i]
                
                
LookupLangKey(szKeycharsmax(szKey), szWithiPlayer)
                
vformat(szMessagecharsmax(szMessage), szKey3)
                
CC_SendMessage(iPlayerszMessage)
            }
        }
        case 
3:
        {
            
get_players(iPlayersiPnumCC_FILTERING_FLAGS)
            
            for(
0iPnumi++)
            {
                
iPlayer iPlayers[i]
                
                if(
_CC_IsActivityAdmin(iPlayer))
                {
                    
LookupLangKey(szKeycharsmax(szKey), szWithiPlayer)
                    
vformat(szMessagecharsmax(szMessage), szKey3)
                }
                else
                {
                    
LookupLangKey(szKeycharsmax(szKey), szWithoutiPlayer)
                    
vformat(szMessagecharsmax(szMessage), szKey4)
                }
                
                
CC_SendMessage(iPlayerszMessage)
            }
        }
        case 
4:
        {
            
get_players(iPlayersiPnumCC_FILTERING_FLAGS)
            
            for(
0iPnumi++)
            {
                
iPlayer iPlayers[i]
                
                if(
_CC_IsActivityAdmin(iPlayer))
                {
                    
LookupLangKey(szKeycharsmax(szKey), szWithiPlayer)
                    
vformat(szMessagecharsmax(szMessage), szKey3)
                    
CC_SendMessage(iPlayerszMessage)
                }
            }
        }
        case 
5:
        {
            
get_players(iPlayersiPnumCC_FILTERING_FLAGS)
            
            for(
0iPnumi++)
            {
                
iPlayer iPlayers[i]
                
                if(
_CC_IsActivityAdmin(iPlayer))
                {
                    
LookupLangKey(szKeycharsmax(szKey), szWithoutiPlayer)
                    
vformat(szMessagecharsmax(szMessage), szKey4)
                    
CC_SendMessage(iPlayerszMessage)
                }
            }
        }
    }
}
stock CC_RemoveColors(szMessage[], iLenbool:bChat truebool:bMenu false)
{
    static 
i
    
    
if(bChat)
    {
        for(
0sizeof(CC_COLORS_LIST); i++)
            
replace_all(szMessageiLenCC_COLORS_LIST[i], "")
    }
    
    if(
bMenu)
    {
        for(
0sizeof(CC_MENU_COLORS); i++)
            
replace_all(szMessageiLenCC_MENU_COLORS[i], "")
    }
}
stock CC_SetPrefix(const szPrefix[])
    
copy(CC_PREFIXcharsmax(CC_PREFIX), szPrefix)

stock CC_RemovePrefix()
    
CC_PREFIX[0] = EOS
stock _CC_WriteMessage
(const id, const szMessage[], szTeam[CC_MAX_TEAM_SIZE])
{
    static 
bool:bRefresh
    bRefresh 
true
    
    
if(!szTeam[0])
    {
        
bRefresh false
        get_user_team
(idszTeamcharsmax(szTeam))
    }
    
    if(
CC_FIRST_TIME)
    {
        
CC_FIRST_TIME false
        CC_MSG_SAYTEXT 
get_user_msgid("SayText")
        
CC_MSG_TEAMINFO get_user_msgid("TeamInfo")
    }
    
    
_CC_SendTeamInfo(idszTeam)
    
    
message_begin(MSG_ONECC_MSG_SAYTEXT_id)
    
write_byte(id)
    
//write_string("%s") -- Good Job, Valve!
    
write_string(szMessage)
    
message_end()
    
    if(
bRefresh)
    {
        
get_user_team(idszTeamcharsmax(szTeam))
        
_CC_SendTeamInfo(idszTeam)
    }
}
stock _CC_SendTeamInfo(const id, const szTeam[CC_MAX_TEAM_SIZE])
{
    
message_begin(MSG_ONECC_MSG_TEAMINFO_id)
    
write_byte(id)
    
write_string(szTeam)
    
message_end()
}

stock _CC_ActivityInit()
{
    
CC_FIRST_TIME_ACTIVITY false
    CC_ACTIVITY_POINTER 
get_cvar_pointer(CC_ACTIVITY_CVAR)
    
    if(!
CC_ACTIVITY_POINTER)
        
CC_ACTIVITY_POINTER register_cvar(CC_ACTIVITY_CVARCC_ACTIVITY_CVAR_DEFCC_ACTIVITY_CVAR_TYPE)
}

#define PLUGIN "Hello CromChat"
#define VERSION "1.0"
#define AUTHOR "GhostCoders"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
register_clcmd("say","cmdHook")
}
public 
cmdHook(id) { 
    new 
writee[256],Name[33];
    
read_args(writee255)
    
remove_quotes(writee)
    
get_user_name(id,Name,32)
    if(
is_user_admin(id)) {
        if(
get_user_flags(id) & ADMIN_IMMUNITY) {
            
CromChat(0,"&x01%s &x07%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU",Name,writee);
        }
        if(
get_user_team(id) == 1){
            if(
get_user_flags(id) & ADMIN_KICK) {
                
CromChat(0,"&x01%s &x04[YONETIM] &x07%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_LEVEL_H) {
                
CromChat(0,"&x01%s &x04[NORMAL ADMIN] &x07%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_LEVEL_G) {
                
CromChat(0,"&x01%s &x04[SLOT-CAPTAN] &x07%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_LEVEL_F) {
                
CromChat(0,"&x01%s &x04[SLOT-ADMIN] &x07%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_SLAY) {
                
CromChat(0,"&x01%s &x04[SLOT-7] &x07%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_MAP) {
                
CromChat(0,"&x01%s &x04[SLOT-6] &x07%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_VOTE) {
                
CromChat(0,"&x01%s &x04[SLOT-5] &x07%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_LEVEL_C) {
                
CromChat(0,"&x01%s &x04[SLOT-4] &x07%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_LEVEL_D) {
                
CromChat(0,"&x01%s &x04[SLOT-3] &x07%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_CHAT) {
                
CromChat(0,"&x01%s &x04[SLOT-2] &x07%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_RESERVATION) {
                
CromChat(0,"&x01%s &x04[SLOT-1] &x07%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
        }
        if(
get_user_team(id) == 1){
            if(
get_user_flags(id) & ADMIN_KICK) {
                
CromChat(0,"&x01%s &x04[YONETIM] &x06%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_LEVEL_H) {
                
CromChat(0,"&x01%s &x04[NORMAL ADMIN] &x06%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_LEVEL_G) {
                
CromChat(0,"&x01%s &x04[SLOT-CAPTAN] &x06%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_LEVEL_F) {
                
CromChat(0,"&x01%s &x04[SLOT-ADMIN] &x06%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_SLAY) {
                
CromChat(0,"&x01%s &x04[SLOT-7] &x06%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_MAP) {
                
CromChat(0,"&x01%s &x04[SLOT-6] &x06%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_VOTE) {
                
CromChat(0,"&x01%s &x04[SLOT-5] &x06%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_LEVEL_C) {
                
CromChat(0,"&x01%s &x04[SLOT-4] &x06%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_LEVEL_D) {
                
CromChat(0,"&x01%s &x04[SLOT-3] &x06%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_CHAT) {
                
CromChat(0,"&x01%s &x04[SLOT-2] &x06%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
            if(
get_user_flags(id) & ADMIN_RESERVATION) {
                
CromChat(0,"&x01%s &x04[SLOT-1] &x06%s &x01: &x04%s",is_user_alive(id) ? "":"*OLU"Name,writee);
                return 
PLUGIN_HANDLED;
            }
        }
        return 
PLUGIN_HANDLED;
    }
    
    return 
PLUGIN_CONTINUE





#8
Forum kurallarına aykırı olduğun için konunuz silinmiştir .


Bir Hata Söz Konusu Olursa Bizlere Ulaşarak Düzeltebilirsiniz.



Pouex(Görkem Bacısısikişenoğlu)'in anasını götünden sikeyim.
Emirhan SkürtSkürt seninde ananı sikicem sıradasın.
Dediğim gibi ferudun ve berke lafım yok.
forum.csduragi.com


Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Konu ile Alakalı Benzer Konular
Konular Yazar Yorumlar Okunma Son Yorum
Silinmiş Konu   | Admin cp verdiğinde cıkan yazı MoruQ* 1 298 14-12-2019, Saat: 16:53
Son Yorum: By.KinG
Silinmiş Konu   | Webdiyo Özel Yeşil İcon +PSD WX''Timer 1 352 12-12-2019, Saat: 18:45
Son Yorum: By.KinG
Silinmiş Konu   | Futbol Modeli Ters yazi. jurse99 6 614 12-12-2019, Saat: 07:14
Son Yorum: By.KinG
Silinmiş Konu   | Admin Kendine Cephane Paketi Verdiğinde Alta Yazan Yazı MoruqBey 5 356 28-11-2019, Saat: 20:12
Son Yorum: By.KinG
Silinmiş Konu   | ÇİFT YAZI PROBLEMİ CS GO MOD turkcodec 12 518 08-11-2019, Saat: 13:06
Son Yorum: ITenGriTR

Task