#include <amxmodx>

forward amxbans_admin_connect(id);

new bool:g_Vip[33];

public plugin_init(){
	register_plugin("VIP Ultimate", "12.3.0.2", "benio101 & speedkill");
	register_clcmd("say /vip", "ShowMotd");
}
public client_authorized(id){
	if(get_user_flags(id) & 524288 == 524288){
		client_authorized_vip(id);
	}
}
public client_authorized_vip(id){
	g_Vip[id]=true;
}
public client_disconnect(id){
	if(g_Vip[id]){
		client_disconnect_vip(id);
	}
}
public client_disconnect_vip(id){
	g_Vip[id]=false;
}
public ShowMotd(id){
	show_motd(id, "vip.txt", "Informacje o vipie");
}
public amxbans_admin_connect(id){
	client_authorized(id);
}