Kod:
#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", "Adrenalin Gaming | Jailbreak : " ) //Buralari duzenleyin.
register_cvar( "cvar_reklam2", "Server & TS3 IP : 95.173.174.05 & 185.247.137.108" ) //Buralari duzenleyin.
register_cvar( "cvar_reklam3", "Pazar Saat 20:00'da Toplantimiz Vardir. Katilim Zorunludur." ) //Buralari duzenleyin.
}
public client_putinserver(id) set_task( 0.6, "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],players[32],te_num,ct_num,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))
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 ,"[%i]^n%s^n%s",days,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
}
hep aynı hatayı veriyor düzeltebilecek varmı ?