/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <codmod>
#include <fun>
#include <cstrike>

native cod_get_user_Ordery(id)
native cod_set_user_Ordery(id, wartosc)

new const perk_name[] = "Sakwa z Orderami";
new const perk_desc[] = "Co runde dostajesz 5 Orderow";

new bool:ma_perk[33];

public plugin_init()
{
	register_plugin(perk_name, "1.0", "Play");
	
	cod_register_perk(perk_name, perk_desc);
}
public cod_perk_enabled(id)
{
	new kasa = cod_get_user_Ordery(id)
	
	cod_set_user_Ordery(id, kasa + 5) 	
	ma_perk[id] = true;
}
public cod_perk_disabled(id)
{
	new kasa = cod_get_user_Ordery(id)
	
	cod_set_user_Ordery(id, kasa - 5) 
	ma_perk[id] = false;
}

/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ ansicpg1251\\ deff0\\ deflang1045{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ f0\\ fs16 \n\\ par }
*/
