Sorun değil dostum buyur dene.theWinter yazdı: ↑Cum Kas 16, 2018 1:44 am @necati_dgn seni gene uğraştırıcam ama bu son üstad https://i.hizliresim.com/nQPbpM.png su resimdeki yeride kaldırdın mı tamamdır vallahi ben beceremedim yoksa seni uğraştırmam genede çok sağol çok sağlam plugin
Kod: Tümünü seç
#include <amxmodx>
#include <reapi>
new g_elbasi=false
public plugin_init()
{
register_plugin("Gelismis UstYazi & Gun Plugini", "4.0", "Necati_DGN")
register_logevent("elbasi", 2, "1=Round_Start")
register_cvar( "cvar_reklam1", "CSDURAGI | GUN : " ) //Buralari duzenleyin.
register_cvar( "cvar_reklam2", "Server & TS3 IP : CSXXX.CSDURAGI.COM & TSXXX.CSDURAGI.INFO" ) //Buralari duzenleyin.
register_cvar( "cvar_reklam3", "Cuma Saat XX:XX'da Toplantimiz Vardir. Katilim Zorunludur." ) //Buralari duzenleyin.
}
public client_putinserver(id) set_task( 0.5, "info", id, _, _, "b" )
public elbasi() g_elbasi = true,set_task(5.0,"eski")
public eski() g_elbasi = false
public info(id){
new szCvar1[64],szCvar2[64],szCvar3[64],days
get_cvar_string("cvar_reklam1",szCvar1,charsmax(szCvar1))
get_cvar_string("cvar_reklam2",szCvar2,charsmax(szCvar2))
get_cvar_string("cvar_reklam3",szCvar3,charsmax(szCvar3))
//new players[32],te_num,ct_num
//get_players(players,te_num,"ae","TERRORIST")
//get_players(players,ct_num,"ae","CT")
days = get_member_game(m_iNumCTWins)+get_member_game(m_iNumTerroristWins)+1
if(g_elbasi){
new map[32]
get_mapname(map,charsmax(map))
set_dhudmessage(170, 170, 255, -1.0,0.18, 0, 6.0, 0.5);
show_dhudmessage(id,"%s%i^n^nHarita : %s - Sunucu : %d/%d",szCvar1,days,map,get_playersnum(),get_member_game(m_nMaxPlayers))
set_dhudmessage(255, 127, 0, -1.0,0.18, 0, 6.0, 0.5);
show_dhudmessage(id ,"^n%s",szCvar2)
} else {
if(is_user_alive(id)){
new hostname[64]
get_cvar_string("hostname", hostname, charsmax(hostname))
set_dhudmessage(170, 170, 255, -1.0, 0.0, 0, 6.0, 0.5);
show_dhudmessage(id ,"%s^n%s",hostname,szCvar2)
//set_dhudmessage(255, 0, 0, -1.0, 0.0, 0, 6.0, 0.5);
//show_dhudmessage(id ,"MAHKUM : %i ",te_num)
//set_dhudmessage(0, 42, 255, -1.0, 0.0, 0, 6.0, 0.5);
//show_dhudmessage(id ," GARDIYAN : %i",ct_num)
} else {
if(get_user_flags(id) & ADMIN_RESERVATION)
{
set_dhudmessage(170, 170, 255, -1.0, 0.15, 1, 6.0, 0.5)
show_dhudmessage(id, "%s%i^n[ - %s - ]",szCvar1,days,szCvar3)
//set_dhudmessage(255, 0, 0, -1.0, 0.15, 0, 6.0, 0.5)
//show_dhudmessage(id, "MAHKUM : %i ",te_num)
//set_dhudmessage(0, 42, 255, -1.0, 0.15, 0, 6.0, 0.5)
//show_dhudmessage(id, " GARDIYAN : %i",ct_num)
} else {
set_dhudmessage(170, 170, 255, -1.0, 0.15, 1, 6.0, 0.5)
show_dhudmessage(id, "%s%i^n[ - Sende Ailemize Katilmak Istersen say'a [/TS3] Yazarak Katilabilirsin. - ]",szCvar1,days)
//set_dhudmessage(255, 0, 0, -1.0, 0.15, 0, 6.0, 0.5)
//show_dhudmessage(id, "MAHKUM : %i ",te_num)
//set_dhudmessage(0, 42, 255, -1.0, 0.15, 0, 6.0, 0.5)
//show_dhudmessage(id, " GARDIYAN : %i",ct_num)
}
}
}
return PLUGIN_HANDLED
}