Nekem olyan plugin kéne oldalt mindik kiirja Kékkel,Zöldel,Sárgával,Pirossal mindig változtassa a szinet!
És Legyen ott olyan hogy
Jó Játékot!
Slot:
CT FRAG:
T FRAG:
Adminok:
Config By:
#include <amxmodx>
#include <cstrike>
new szinek[5][3] = {
{0,255,100},
{255, 170, 0},
{255,0,0},
{0,255,0},
{255,0,255}
}
new szinum
new ctfrag = 0
new tfrag = 0
new gSzamolas;
new const gBuyCommands[ ][ ] =
{
"awp", "g3sg1", "sg550", "sgren", "shield"
}
public plugin_init() {
set_task(0.0,"msg")
register_plugin("Hudszar", "1.0", "kiki")
register_logevent("ElsoKor", 2, "0=World triggered", "1&Restart_Round_");
register_logevent("ElsoKor", 2, "0=World triggered", "1=Game_Commencing");
register_logevent("KorKezdes", 2, "0=World triggered", "1=Round_Start");
for (new i; i < sizeof gBuyCommands; i++)
register_clcmd(gBuyCommands[i], "BlockBuyCommands")
register_event("DeathMsg", "oles", "a")
}
public ElsoKor()
{
gSzamolas = 0;
tfrag = 0
ctfrag = 0
}
public KorKezdes()
{
client_cmd(0, "rate 25000")
client_cmd(0, "cl_updaterate 101")
print_color(0, "!gInfo]!y #Kör:!t %d!y/!t30 !y#Játékosok:!g %d!y/!g20", gSzamolas, get_playersnum())
gSzamolas++;
}
public oles()
{
new gyilkos = read_data( 1 );
if(cs_get_user_team(gyilkos) == CS_TEAM_CT)
ctfrag++
if(cs_get_user_team(gyilkos) == CS_TEAM_T)
tfrag++
}
public BlockBuyCommands(id)
{
client_print ( id, print_center,"!!Item letiltva!!" )
return PLUGIN_HANDLED;
}
public client_connect(id){
client_cmd(0, "rate 25000")
client_cmd(0, "cl_updaterate 101")
new name[32]
get_user_name(id, name, 31)
print_color(0, "!t[Info]!y %s!g csatlakozott!",name)
}
public msg()
{
if(4 >= szinum)
szinum++
if(4 <= szinum)
szinum = 0
new jatekosok = get_playersnum(1);
new id, count
new datum[64]
get_time("%Y.%m.%d", datum, 63)
new p[32], n;
get_players(p, n);
new iTime[9]
get_time("%H:%M:%S",iTime,8)
for(id = 1 ; id <= get_maxplayers() ; id++)
if(is_user_connected(id))
if(get_user_flags(id) & ADMIN_KICK)
count++
new nPlayers[32], nNums, nPlayer_S
get_players(nPlayers, nNums, "c")
for(new i = 0; i < nNums; i++)
{
nPlayer_S = nPlayers[i]
if(!is_user_alive(nPlayer_S))
{
set_hudmessage(szinek[szinum][0], szinek[szinum][1], szinek[szinum][2], 0.01, 0.15, 0, 6.0, 6.0)
show_hudmessage(nPlayer_S, "Jó Játékot!^n%s^n%s^nAdminok: %d^nKör: %d/30^nJátékosok: %d/%d^nFRAGS [T]: %d^nFRAGS [CT]: %d^nConfig by:", datum, iTime, count, gSzamolas, jatekosok, get_maxplayers(), tfrag, ctfrag)
}
}
set_task(5.0,"msg")
}
stock print_color(const id, const input[], any:...)
{
new count = 1, players[32]
static msg[191]
vformat(msg, 190, input, 3)
replace_all(msg, 190, "!g", "^4")
replace_all(msg, 190, "!y", "^1")
replace_all(msg, 190, "!t", "^3")
replace_all(msg, 190, "á", "á")
replace_all(msg, 190, "é", "Ă©")
replace_all(msg, 190, "í", "Ă")
replace_all(msg, 190, "ó", "Ăł")
replace_all(msg, 190, "ö", "ö")
replace_all(msg, 190, "ő", "Ĺ‘")
replace_all(msg, 190, "ú", "Ăş")
replace_all(msg, 190, "ü", "ĂĽ")
replace_all(msg, 190, "ű", "ű")
replace_all(msg, 190, "Á", "Ă")
replace_all(msg, 190, "É", "É")
replace_all(msg, 190, "Í", "ĂŤ")
replace_all(msg, 190, "Ó", "Ă“")
replace_all(msg, 190, "Ö", "Ă–")
replace_all(msg, 190, "Ő", "Ĺ")
replace_all(msg, 190, "Ú", "Ăš")
replace_all(msg, 190, "Ü", "Ăś")
replace_all(msg, 190, "Ű", "Ĺ°")
if (id) players[0] = id; else get_players(players, count, "ch")
{
for (new i = 0; i < count; i++)
{
if (is_user_connected(players[i]))
{
message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i])
write_byte(players[i])
write_string(msg)
message_end()
}
}
}
return PLUGIN_HANDLED
}