Umm hey, Me and a friend of mine are trying to make a team blocker for TS. Can anyone help?
Code:
#include <amxmodx>
#include <amxmisc>
#include <engine>
#define PLUGIN "Zombie Blocker"
#define VERSION "v1"
#define AUTHOR "BlueDevil"
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_infochanged(id)
{
new model[33], authid[32], flags[33]
get_user_info(id,"model",model[id],32)
get_user_authid(id,authid,31)
get_user_flags(id,flags,33)
if(equali(model,"zombie") && !equali(flags,"ADMIN_BAN"))
{
client_print(id,print_chat,"[ZombieMod] Sorry but you are only allowed to be on the human team.")
client_cmd(id,"model","human")
}
if(equali(model,"zombie2") && !equali(flags,"ADMIN_BAN"))
{
client_print(id,print_chat,"[ZombieMod] Sorry but you are only allowed to be on the human team.")
client_cmd(id,"model","human")
}
return PLUGIN_HANDLED
}