Not if I do something like this right?...but it gives me a tag mismatch on "if(!Frags > 3)" and apparently "return PLUGIN_CONTINUED" it doesnt like.
Code:
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "ktd"
#define VERSION "0.1"
#define AUTHOR "SweatyBanana"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("ResetHUD", "ktd", "b")
}
public ktd(id)
{
new Frags = get_user_frags(id)
new Deaths = get_user_deaths(id)
new MAXFRAGDEATH = 3 * Deaths
new LIMITWARN = 2 * Deaths
new name[32]
if(!Frags > 3)
{
get_user_name(id,name,31)
client_print(0,print_chat,"[KTD] Anyone with a kill/death ratio will be kicked.",name)
}
if(Frags >= LIMITWARN)
{
get_user_name(id,name,31)
client_print(0,print_chat,"WARNING: %s will be kicked soon for too high of a Kill/Death ratio.",name)
}
if(Frags >= MAXFRAGDEATH)
{
get_user_name(id,name,31)
client_print(0,print_chat,"[KTD] %s has been kicked due to too high of a Kill/Death ratio.",name)
server_cmd("kick ^"%s^" ^" too high of a Kill/Death ratio^"",name);
}
return PLUGIN_CONTINUED
}