Kod:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#define adtime 600.0
new girislanbu
new gosterelimmipanpa
public plugin_init()
{
girislanbu = register_cvar("csm_girissaymesaji", "1")
gosterelimmipanpa = register_cvar("csm_kimsifirladi", "1")
register_clcmd("say /reset", "biriskordedi")
register_clcmd("say /rs", "biriskordedi")
register_clcmd("say .reset", "biriskordedi")
register_clcmd("say_team /reset", "biriskordedi")
register_clcmd("say_team /rs", "biriskordedi")
register_clcmd("say_team .reset", "biriskordedi")
register_plugin("Skor Resetleme", "1.0", "CSmiLeFaCe")
}
public client_putinserver(id)
{
if(get_pcvar_num(girislanbu) == 1)
{
set_task(10.0, "girismesaji", id, _, _, "a", 1)
}
}
public biriskordedi(id)
{
cs_set_user_deaths(id, 0)
set_user_frags(id, 0)
cs_set_user_deaths(id, 0)
set_user_frags(id, 0)
if(get_pcvar_num(gosterelimmipanpa) == 1)
{
new ismi[33]
get_user_name(id, ismi, 32)
client_print_color(0,0,"^3%s ^4Skorunu Sifirladi..!",ismi)
}
else
{
client_print_color(id,id,"^3Frag = ^4[^1 0 ^4]")
client_cmd(id,"spk ^"events/enemy_died^"")
client_print_color(id,id,"^3Skorunuzu sifirladiniz.")
}
}
public girismesaji(id)
{
if(is_user_connected(id))
{
client_print_color(id,id,"^3Skorunuzu Sifirlamak icin Say'den ^4[^1 /reset ^4] yaziniz.")
}
}