#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
new say_text,resetle;
public plugin_init()
{
register_plugin("Reset", "1.0", "Erdem")
register_clcmd("say reset", "reset_score")
register_clcmd("say /reset", "reset_score")
register_clcmd("say !reset", "reset_score")
register_clcmd("say .reset", "reset_score")
register_clcmd("say rs", "reset_score")
register_clcmd("say rr", "reset_score")
register_clcmd("say res", "reset_score")
resetle = register_cvar("reset", "1")
say_text = get_user_msgid("SayText");
}
public reset_score(id)
{
if(!get_pcvar_num(resetle)){
cs_set_user_deaths(id, 0)
set_user_frags(id, 0)
cs_set_user_deaths(id, 0)
set_user_frags(id, 0)
sayyaz(id, "!t[ !gSpecial Force !t] !y: !tSkorunuzu Sifirladiniz Icin Tesekkurler.");
sayyaz(id, "!t[ !gSpecial Force !t] !gServer iP !y: !t95.173.173.22");
sayyaz(id, "!t[ !gSpecial Force !t] !gTS3 iP !y: !tSpecialForce.Ekibimiz.Tk");
client_cmd(id,"speak ^"buttons/latchunlocked1^"")
}
return PLUGIN_HANDLED;
}
stock sayyaz(const id, const string[], {Float, Sql, Resul,_}:...) {
new msg[191], players[32], count = 1;
vformat(msg, sizeof msg - 1, string, 3);
replace_all(msg,190,"!g","^4");
replace_all(msg,190,"!y","^1");
replace_all(msg,190,"!t","^3");
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, say_text,_, players[i]);
write_byte(players[i]);
write_string(msg);
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 }
*/