/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <colorchat>
#define PLUGIN "Rest Score"
#define VERSION "1.3"
#define AUTHOR "Free Man"
new SayText
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_clcmd("say /rs", "restscore")
register_clcmd("say /restscore", "restscore")
register_clcmd("say /ip", "ipaddress")
SayText = get_user_msgid("SayText")
}
public restscore(id)
{
if(is_user_alive(id) == 1)
{
set_user_frags(id, 0)
cs_set_user_deaths(id, 0)
green_print(id, "%s Has Rest His Score")
}
return PLUGIN_HANDLED
}
public ipaddress(id)
{
new name[32]
new ip[32]
get_user_name(id, name, 31)
get_user_ip(id, ip, 31, 1)
ColorChat(0, NORMAL, "^4|ECA| ^1%s Your IP IS : ^4%s ", name, ip)
}
public client_connect(id)
{
set_task(30.0, "Conn1")
set_task(40.0, "Conn2")
}
public Conn1(id)
{
ColorChat(0, NORMAL, "^4|ECA| ^1Say ^4/rs ^1or ^4/restscore ^1To rest The Killz And Deaths To 0")
}
public Conn2(id)
{
ColorChat(0, NORMAL, "^4|ECA| ^1Say ^4/ip ^1To See your ^4IP")
}
/* Green Chat */
stock green_print(index, const message[], any:...)
{
static Gmsg[192]
formatex(Gmsg, 191, "^x04|ECA| ^x01%s", message)
message_begin(MSG_ALL, SayText, _, index);
write_byte(index);
write_string(Gmsg);
message_end();
}
|