PHP Code:
#include <amxmodx>
#include <fun>
public plugin_init()
{
register_event("HLTV", "new_round", "a", "1=0", "2=0")
}
public new_round()
{
static id
for (id = 1; id <= get_maxplayers(); id++)
{
if(is_user_connected(id) && is_user_alive(id))
{
strip_user_weapons(id)
give_item(id, "weapon_knife")
}
}
}
It should remove all weapon at round start, but it doesnt do that, whats wrong?