/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <codmod>
#include <hamsandwich>
#include <colorchat>

#define PLUGIN "General Broni"
#define VERSION "1.0"
#define AUTHOR "Fili:P"

native cod_give_dualkriss(id);
native cod_told_dualkriss(id);
native cod_give_ddeagle(id);
native cod_told_ddeagle(id);

new bool:ma_klase[33];

public plugin_init(){
	register_plugin(PLUGIN, VERSION, AUTHOR)
	cod_register_class("General Broni [VIP]", "Ma Dual Kriss i Dual Deagle oraz wieksze DMG z nich", 1<<CSW_UMP45 | 1<<CSW_ELITE, 15,15,2,8);
	//RegisterHam(Ham_Spawn, "player", "fw_spawn", 1);
}
public cod_class_enabled(id)
{
	if(!(get_user_flags(id) & ADMIN_LEVEL_H)){
		ColorChat(id, GREEN, "[Forum] ^x01 Nie masz uprawnien do uzywania klasy ^x04General Broni");
		ColorChat(id, GREEN, "[Forum] ^x01 Jezeli chcesz miec dostep do klasy ^x04General Broni^x01 i kilku innych, zakup konto VIP.");
		return COD_STOP;
	}
	ma_klase[id]=true;
	//ilosc_min_gracza[id] = 3;
	cod_give_dualkriss(id);
	cod_give_ddeagle(id);
	return COD_CONTINUE;
}
public cod_class_disabled(id)
{
	cod_told_dualkriss(id);
	cod_told_ddeagle(id);
	ma_klase[id]=false;
}
//public fw_spawn
