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
Temamızın yeni versiyonuna geçilmiştir.
Görüş & Önerileriniz için [email protected] adresine mail atabilirsiniz.
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 ?
Konu
Ç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 )-]
[- TuraN CLaN Ailesi ( 173.35 )-]
Bu Pulgin Olck Sma
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 )-]
[- TuraN CLaN Ailesi ( 173.35 )-]
@garga23412312
Buyur;
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(PLUGIN, VERSION, AUTHOR)
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(msgId, msgDest, receiver)
{
return PLUGIN_HANDLED
}
get_tag_index(id)
{
new flags = get_user_flags(id)
for(new i = 1; i < sizeof(g_iTagFlag); i++)
{
if(check_admin_flag(flags, g_iTagFlag[i]))
{
return i
}
}
return 0
}
check_admin_flag(flags, flag)
{
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(message, 191)
remove_quotes(message)
if(message[0] == '@' || message[0] == '/' || message[0] == '!' || equal(message, ""))
return PLUGIN_CONTINUE
new name[32]
get_user_name(id, name, 31)
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(strName, 191, "^x04%s %s%s", g_szTag[admin], alive, name)
case 2:
format(strName, 191, "^x04%s %s^x04%s ", g_szTag[admin], alive, name)
case 3:
{
color = "SPECTATOR"
format(strName, 191, "^x04%s %s^x03%s ", g_szTag[admin], alive, name)
}
case 4:
{
color = "CT"
format(strName, 191, "^x04%s %s^x03%s", g_szTag[admin], alive, name)
}
case 5:
{
color = "TERRORIST"
format(strName, 191, "^x04%s %s^x03%s", g_szTag[admin], alive, name)
}
case 6:
{
get_user_team(id, color, 9)
format(strName, 191, "^x04%s %s^x03%s", g_szTag[admin], alive, name)
}
}
// Mesaj
switch(get_pcvar_num(g_MessageColor))
{
case 1: // Sari
format(strText, 191, "%s", message)
case 2: // Yesil
format(strText, 191, "^x04%s", message)
case 3: // Beyaz
{
copy(color, 9, "SPECTATOR")
format(strText, 191, "^x03%s", message)
}
case 4: // Mavi
{
copy(color, 9, "CT")
format(strText, 191, "^x03%s", message)
}
case 5: // Kirmizi
{
copy(color, 9, "TERRORIST")
format(strText, 191, "^x03%s", message)
}
}
}
else
{
get_user_team(id, color, 9)
format(strName, 191, "%s^x03%s", alive, name)
format(strText, 191, "%s", message)
}
format(message, 191, "%s^x01 : %s", strName, strText)
sendMessage(color, isAlive)
return PLUGIN_CONTINUE
}
public hook_teamsay(id)
{
new playerTeam = get_user_team(id)
new playerTeamName[19]
switch(playerTeam)
{
case 1:
copy(playerTeamName, 11, "Terrorists")
case 2:
copy(playerTeamName, 18, "Counter-Terrorists")
default:
copy(playerTeamName, 9, "Spectator")
}
read_args(message, 191)
remove_quotes(message)
if(message[0] == '@' || message[0] == '/' || message[0] == '!' || equal(message, ""))
return PLUGIN_CONTINUE
new name[32]
get_user_name(id, name, 31)
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(strName, 191, "%s(%s)^x04%s %s", alive, playerTeamName, g_szTag[admin], name)
case 2:
format(strName, 191, "%s(%s)^x04%s ^x04%s", alive, playerTeamName, g_szTag[admin], name)
case 3:
{
color = "SPECTATOR"
format(strName, 191, "%s(%s)^x04%s ^x03%s", alive, playerTeamName, g_szTag[admin], name)
}
case 4:
{
color = "CT"
format(strName, 191, "%s(%s)^x04%s ^x03%s", alive, playerTeamName, g_szTag[admin], name)
}
case 5:
{
color = "TERRORIST"
format(strName, 191, "%s(%s)^x04%s ^x03%s", alive, playerTeamName, g_szTag[admin], name)
}
case 6:
{
get_user_team(id, color, 9)
format(strName, 191, "%s(%s)^x04%s ^x03%s", alive, playerTeamName, g_szTag[admin], name)
}
}
// Message
switch(get_pcvar_num(g_MessageColor))
{
case 1: // Sari
format(strText, 191, "%s", message)
case 2: // Yesil
format(strText, 191, "^x04%s", message)
case 3: // Beyaz
{
copy(color, 9, "SPECTATOR")
format(strText, 191, "^x03%s", message)
}
case 4: // Mavi
{
copy(color, 9, "CT")
format(strText, 191, "^x03%s", message)
}
case 5: // Kirmizi
{
copy(color, 9, "TERRORIST")
format(strText, 191, "^x03%s", message)
}
}
}
else
{
get_user_team(id, color, 9)
format(strName, 191, "%s(%s) ^x03%s", alive, playerTeamName, name)
format(strText, 191, "%s", message)
}
format(message, 191, "%s ^x01: %s", strName, strText)
sendTeamMessage(color, isAlive, playerTeam)
return PLUGIN_CONTINUE
}
public set_color(id, level, cid)
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED
new arg[1], newColor
read_argv(1, arg, 1)
newColor = str_to_num(arg)
if(newColor >= 1 && newColor <= 5)
{
set_pcvar_num(g_MessageColor, newColor)
if(get_pcvar_num(g_NameColor) != 1 &&
((newColor == 3 && get_pcvar_num(g_NameColor) != 3)
||(newColor == 4 && get_pcvar_num(g_NameColor) != 4)
||(newColor == 5 && get_pcvar_num(g_NameColor) != 5)))
{
set_pcvar_num(g_NameColor, 2)
}
}
return PLUGIN_HANDLED
}
public set_name_color(id, level, cid)
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED
new arg[1], newColor
read_argv(1, arg, 1)
newColor = str_to_num(arg)
if(newColor >= 1 && newColor <= 6)
{
set_pcvar_num(g_NameColor, newColor)
if((get_pcvar_num(g_MessageColor) != 1
&&((newColor == 3 && get_pcvar_num(g_MessageColor) != 3)
||(newColor == 4 && get_pcvar_num(g_MessageColor) != 4)
||(newColor == 5 && get_pcvar_num(g_MessageColor) != 5)))
|| get_pcvar_num(g_NameColor) == 6)
{
set_pcvar_num(g_MessageColor, 2)
}
}
return PLUGIN_HANDLED
}
public set_listen(id, level, cid)
{
if(!cmd_access(id, level, cid, 2))
return PLUGIN_HANDLED
new arg[1], newListen
read_argv(1, arg, 1)
newListen = str_to_num(arg)
set_pcvar_num(g_AdminListen, newListen)
return PLUGIN_HANDLED
}
public sendMessage(color[], alive)
{
new teamName[10]
for(new player = 1; player < maxPlayers; player++)
{
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(player, teamName, 9)
changeTeamInfo(player, color)
writeMessage(player, message)
changeTeamInfo(player, teamName)
}
}
}
public sendTeamMessage(color[], alive, playerTeam)
{
new teamName[10]
for(new player = 1; player < maxPlayers; player++)
{
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(player, teamName, 9)
changeTeamInfo(player, color)
writeMessage(player, message)
changeTeamInfo(player, teamName)
}
}
}
}
public changeTeamInfo(player, team[])
{
message_begin(MSG_ONE, teamInfo, _, player)
write_byte(player)
write_string(team)
message_end()
}
public writeMessage(player, message[])
{
message_begin(MSG_ONE, sayText, {0, 0, 0}, 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 }
*/
Dener misin kendim kodladım
@garga23412312
@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 = true, bool:CC_FIRST_TIME_ACTIVITY = true, CC_ACTIVITY_POINTER, CC_MSG_SAYTEXT, CC_MSG_TEAMINFO
new const CC_MENU_COLORS[][] = { CC_SYM_MENU_YELLOW, CC_SYM_MENU_WHITE, CC_SYM_MENU_GREY, CC_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_GREEN, CC_SYM_CHAT_DEF_GREEN, CC_SYM_CHAT_TEAM, CC_SYM_CHAT_DEF_TEAM, CC_SYM_CHAT_NORMAL, CC_SYM_CHAT_DEF_NORMAL }
new const CC_PLUS_COLORS[][] = { CC_SYM_CHAT_RED, CC_SYM_TEAM_T, CC_SYM_CHAT_BLUE, CC_SYM_TEAM_CT, CC_SYM_CHAT_WHITE, CC_SYM_TEAM_SPEC }
new const CC_COLORS_LIST[][] = { CC_SYM_CHAT_RED, CC_SYM_CHAT_BLUE, CC_SYM_CHAT_WHITE, CC_SYM_CHAT_GREEN, CC_SYM_CHAT_TEAM, CC_SYM_CHAT_NORMAL, CC_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(iPlayers, iPnum, CC_FILTERING_FLAGS)
if(!iPnum)
return 0
}
static szMessage[CC_MAX_MESSAGE_SIZE], szTeam[CC_MAX_TEAM_SIZE], bool:bNoPrefix, i
vformat(szMessage[1], charsmax(szMessage), szInput, 3)
szMessage[0] = 0x01
szTeam[0] = EOS
bNoPrefix = bool:(equal(szMessage[1], CC_NO_PREFIX, charsmax(CC_NO_PREFIX)) || equal(szMessage[2], CC_NO_PREFIX, charsmax(CC_NO_PREFIX)))
if(bNoPrefix)
replace(szMessage, charsmax(szMessage), CC_NO_PREFIX, "")
else if(CC_PREFIX[0])
format(szMessage, charsmax(szMessage), "%s%s %s%s", CC_SYM_CHAT_DEF_NORMAL, CC_PREFIX, CC_SYM_CHAT_DEF_NORMAL, szMessage)
for(i = 0; i < sizeof(CC_REPLACE_COLORS) - 1; i += 2)
replace_all(szMessage, charsmax(szMessage), CC_REPLACE_COLORS[i], CC_REPLACE_COLORS[i + 1])
for(i = 0; i < sizeof(CC_PLUS_COLORS) - 1; i += 2)
{
if(contain(szMessage, CC_PLUS_COLORS[i]) != -1)
{
copy(szTeam, charsmax(szTeam), CC_PLUS_COLORS[i + 1])
break
}
}
if(szTeam[0])
{
for(i = 0; i < 3; i++)
replace_all(szMessage, charsmax(szMessage), CC_COLORS_LIST[i], CC_SYM_CHAT_DEF_TEAM)
}
if(id)
_CC_WriteMessage(id, szMessage, szTeam)
else
{
for(i = 0; i < iPnum; i++)
_CC_WriteMessage(iPlayers[i], szMessage, szTeam)
}
return strlen(szMessage)
}
stock CC_SendMatched(const id, const iPlayer, const szInput[], any:...)
{
static szMessage[CC_MAX_MESSAGE_SIZE], bool:bPlus, i
vformat(szMessage[1], charsmax(szMessage), szInput, 4)
szMessage[0] = 0x01
bPlus = false
for(i = 0; i < sizeof(CC_PLUS_COLORS) - 1; i += 2)
{
if(contain(szMessage, CC_PLUS_COLORS[i]) != -1)
{
bPlus = true
break
}
}
if(!bPlus)
{
static iColor
if(is_user_connected(iPlayer))
{
switch(get_user_team(iPlayer))
{
case 1: iColor = CC_COLOR_RED
case 2: iColor = CC_COLOR_BLUE
default: iColor = CC_COLOR_GREY
}
}
else
iColor = iPlayer
switch(iColor)
{
case CC_COLOR_RED: add(szMessage, charsmax(szMessage), CC_COLORS_LIST[0])
case CC_COLOR_BLUE: add(szMessage, charsmax(szMessage), CC_COLORS_LIST[1])
case CC_COLOR_GREY: add(szMessage, charsmax(szMessage), CC_COLORS_LIST[2])
}
}
return CC_SendMessage(id, szMessage)
}
stock CC_GroupMessage(const szFlags[] = "", const szParams[] = "", const szInput[], any:...)
{
static szMessage[CC_MAX_MESSAGE_SIZE], iPlayers[CC_MAX_PLAYERS], iPnum
vformat(szMessage, charsmax(szMessage), szInput, 4)
get_players(iPlayers, iPnum, szFlags, szParams)
if(!iPnum)
return 0
static i
for(i = 0; i < iPnum; i++)
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(szMessage, charsmax(szMessage), szInput, 4)
get_players(iPlayers, iPnum, CC_FILTERING_FLAGS)
if(!iPnum)
return 0
static iCount, iFlags, iPlayer, i
iFlags = read_flags(szFlags)
iCount = 0
for(i = 0; i < iPnum; i++)
{
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(iPlayer, szMessage)
}
if(!iCount)
return 0
return strlen(szMessage)
}
stock CC_LogMessage(const id, const szFile[] = "", const szInput[], any:...)
{
static szMessage[CC_MAX_MESSAGE_SIZE]
vformat(szMessage, charsmax(szMessage), szInput, 4)
if(!CC_SendMessage(id, szMessage))
return 0
CC_RemoveColors(szMessage, charsmax(szMessage))
szFile[0] ? log_to_file(szFile, szMessage) : 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], iPlayer, iPnum, i
vformat(szMessage, charsmax(szMessage), szInput, 4)
_CC_GetActivityPrefix(id, szPrefix, charsmax(szPrefix))
switch(get_pcvar_num(CC_ACTIVITY_POINTER))
{
case 1: CC_SendMessage(0, "%L: %s", LANG_PLAYER, szPrefix, szMessage)
case 2: CC_SendMessage(0, "%L %s: %s", LANG_PLAYER, szPrefix, szName, szMessage)
case 3:
{
get_players(iPlayers, iPnum, CC_FILTERING_FLAGS)
for(i = 0; i < iPnum; i++)
{
iPlayer = iPlayers[i]
if(_CC_IsActivityAdmin(iPlayer))
CC_SendMessage(iPlayer, "%L %s: %s", iPlayer, szPrefix, szName, szMessage)
else
CC_SendMessage(iPlayer, "%L: %s", iPlayer, szPrefix, szMessage)
}
}
case 4:
{
get_players(iPlayers, iPnum, CC_FILTERING_FLAGS)
for(i = 0; i < iPnum; i++)
{
iPlayer = iPlayers[i]
if(_CC_IsActivityAdmin(iPlayer))
CC_SendMessage(iPlayer, "%L %s: %s", iPlayer, szPrefix, szName, szMessage)
}
}
case 5:
{
get_players(iPlayers, iPnum, CC_FILTERING_FLAGS)
for(i = 0; i < iPnum; i++)
{
iPlayer = iPlayers[i]
if(_CC_IsActivityAdmin(iPlayer))
CC_SendMessage(iPlayer, "%L: %s", iPlayer, szPrefix, szMessage)
}
}
}
}
stock CC_ShowActivityId(iTarget, id, 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(szMessage, charsmax(szMessage), szInput, 5)
_CC_GetActivityPrefix(id, szPrefix, charsmax(szPrefix))
switch(get_pcvar_num(CC_ACTIVITY_POINTER))
{
case 1: CC_SendMessage(iTarget, "%L: %s", iTarget, szPrefix, szMessage)
case 2: CC_SendMessage(iTarget, "%L %s: %s", iTarget, szPrefix, szName, szMessage)
case 3:
{
if(_CC_IsActivityAdmin(iTarget))
CC_SendMessage(iTarget, "%L %s: %s", iTarget, szPrefix, szName, szMessage)
else
CC_SendMessage(iTarget, "%L: %s", iTarget, szPrefix, szMessage)
}
case 4:
{
if(_CC_IsActivityAdmin(iTarget))
CC_SendMessage(iTarget, "%L %s: %s", iTarget, szPrefix, szName, szMessage)
}
case 5:
{
if(_CC_IsActivityAdmin(iTarget))
CC_SendMessage(iTarget, "%L: %s", iTarget, szPrefix, szMessage)
}
}
}
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], iPnum, iPlayer, i
switch(get_pcvar_num(CC_ACTIVITY_POINTER))
{
case 1:
{
get_players(iPlayers, iPnum, CC_FILTERING_FLAGS)
for(i = 0; i < iPnum; i++)
{
iPlayer = iPlayers[i]
LookupLangKey(szKey, charsmax(szKey), szWithout, iPlayer)
vformat(szMessage, charsmax(szMessage), szKey, 4)
CC_SendMessage(iPlayer, szMessage)
}
}
case 2:
{
get_players(iPlayers, iPnum, CC_FILTERING_FLAGS)
for(i = 0; i < iPnum; i++)
{
iPlayer = iPlayers[i]
LookupLangKey(szKey, charsmax(szKey), szWith, iPlayer)
vformat(szMessage, charsmax(szMessage), szKey, 3)
CC_SendMessage(iPlayer, szMessage)
}
}
case 3:
{
get_players(iPlayers, iPnum, CC_FILTERING_FLAGS)
for(i = 0; i < iPnum; i++)
{
iPlayer = iPlayers[i]
if(_CC_IsActivityAdmin(iPlayer))
{
LookupLangKey(szKey, charsmax(szKey), szWith, iPlayer)
vformat(szMessage, charsmax(szMessage), szKey, 3)
}
else
{
LookupLangKey(szKey, charsmax(szKey), szWithout, iPlayer)
vformat(szMessage, charsmax(szMessage), szKey, 4)
}
CC_SendMessage(iPlayer, szMessage)
}
}
case 4:
{
get_players(iPlayers, iPnum, CC_FILTERING_FLAGS)
for(i = 0; i < iPnum; i++)
{
iPlayer = iPlayers[i]
if(_CC_IsActivityAdmin(iPlayer))
{
LookupLangKey(szKey, charsmax(szKey), szWith, iPlayer)
vformat(szMessage, charsmax(szMessage), szKey, 3)
CC_SendMessage(iPlayer, szMessage)
}
}
}
case 5:
{
get_players(iPlayers, iPnum, CC_FILTERING_FLAGS)
for(i = 0; i < iPnum; i++)
{
iPlayer = iPlayers[i]
if(_CC_IsActivityAdmin(iPlayer))
{
LookupLangKey(szKey, charsmax(szKey), szWithout, iPlayer)
vformat(szMessage, charsmax(szMessage), szKey, 4)
CC_SendMessage(iPlayer, szMessage)
}
}
}
}
}
stock CC_RemoveColors(szMessage[], iLen, bool:bChat = true, bool:bMenu = false)
{
static i
if(bChat)
{
for(i = 0; i < sizeof(CC_COLORS_LIST); i++)
replace_all(szMessage, iLen, CC_COLORS_LIST[i], "")
}
if(bMenu)
{
for(i = 0; i < sizeof(CC_MENU_COLORS); i++)
replace_all(szMessage, iLen, CC_MENU_COLORS[i], "")
}
}
stock CC_SetPrefix(const szPrefix[])
copy(CC_PREFIX, charsmax(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(id, szTeam, charsmax(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(id, szTeam)
message_begin(MSG_ONE, CC_MSG_SAYTEXT, _, id)
write_byte(id)
//write_string("%s") -- Good Job, Valve!
write_string(szMessage)
message_end()
if(bRefresh)
{
get_user_team(id, szTeam, charsmax(szTeam))
_CC_SendTeamInfo(id, szTeam)
}
}
stock _CC_SendTeamInfo(const id, const szTeam[CC_MAX_TEAM_SIZE])
{
message_begin(MSG_ONE, CC_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_CVAR, CC_ACTIVITY_CVAR_DEF, CC_ACTIVITY_CVAR_TYPE)
}
#define PLUGIN "Hello CromChat"
#define VERSION "1.0"
#define AUTHOR "GhostCoders"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say","cmdHook")
}
public cmdHook(id) {
new writee[256],Name[33];
read_args(writee, 255)
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
}
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
Emirhan SkürtSkürt seninde ananı sikicem sıradasın.
Dediğim gibi ferudun ve berke lafım yok.
forum.csduragi.com
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 |
Konuyu Okuyanlar: 1 Ziyaretçi