Meh.. Try this:
Code:
#include <amxmodx>
#include <fun>
#define PLUGIN "Capture the Hax"
#define VERSION "1.0"
#define AUTHOR "ev0d00b"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_cvar("amx_cth", "1")
register_logevent("Round_Start", 2, "0=World triggered", "1=Round_Start")
register_event("CurWeapon", "Check_Speed", "be")
set_cvar_num("sv_maxspeed", 1000)
}
new hacking[33];
new last_hacker;
public client_connect(id)
hacking[id] = 0;
public client_disconnect(id)
hacking[id] = 0;
public Round_Start() {
if(!get_cvar_num("amx_cth"))
return PLUGIN_CONTINUE;
hacking[last_hacker] = 0;
new hacker = random_num(1, get_maxplayers());
if(is_user_connected(hacker) && is_user_alive(hacker))
{
new hackerName[32];
get_user_name(hacker, hackerName, 31);
hacking[hacker] = 1;
last_hacker = hacker;
client_print(0, print_chat, "%s is haxing! zomg", hackerName);
}
else
{
Round_Start();
}
return PLUGIN_CONTINUE;
}
public Check_Speed(id)
{
if(hacking[id] == 1)
set_user_maxspeed(id, 999.0);
}
__________________