#include <amxmodx>
#include <amxmisc> 
#include <cstrike>
#include <colorchat>
#include <fun>
 
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
 
new int[33];
new elet[33];
new vedelem[33];
new sebesseg[33];
new eloszthato_pont[33];
 
public plugin_init() {
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd("say teszt", "tesztecske")
	register_event("DeathMsg", "death", "a");
}
 
public plugin_precache()
{
precache_sound("Mod/select.wav");
}
public death()
{
new attacker = read_data( 1 ) //Deklaráljuk a támadó változót.
eloszthato_pont[attacker] += 4   //ölés után +4 pont   
 
}
public tesztecske(id) 
{ 
	menu(id); 
}
public menu(id) {
	new menu = menu_create("Menu", "menucske");
 
	menu_additem(menu, "\wTulajdonnsagok", "", 0); //0
	menu_additem(menu, "\wxy", "", 0); //0
 
 
	menu_setprop(menu, MPROP_EXIT, MEXIT_ALL);
	menu_setprop(menu, MPROP_PERPAGE, 7);
	menu_setprop(menu, MPROP_BACKNAME, "Vissza");
	menu_setprop(menu, MPROP_NEXTNAME, "Kovetkezo");
	menu_setprop(menu, MPROP_EXITNAME, "Kilepes");
	menu_setprop(menu, MPROP_NOCOLORS, 1);
 
	menu_display(id, menu, 0);
 
	return PLUGIN_HANDLED;
}
public menucske(id, menu, item) {
	if(item == MENU_EXIT)
	{
		menu_cancel(id);
		return PLUGIN_HANDLED;
	}
 
	new command[6], name[64], access, callback;
	menu_item_getinfo(menu, item, access, command, sizeof command - 1, name, sizeof name - 1, callback);
 
	switch(item)
	{
		case 0:
		{
			Pontok(id)
		}
		case 1:
		{
 
		}
	}
	}
public Pontok(id)
{
	new intelligencia[65];
	new eletenergia[60];
	new ero[60];
	new gyorsasag[60];
	new oszthato[25];
	format(intelligencia, 64, "\wIntelligencia: \r%d ", int[id]);
	format(eletenergia, 59, "\wEnergia: \r%d ", elet[id]);
	format(ero, 59, "\wErő: \r%d ", vedelem[id]);
	format(gyorsasag, 59, "\wKondiciĂł: \r%d ", sebesseg[id]);
	format(oszthato, 24, "\wEloszthatĂł Pontok:%d:", eloszthato_pont[id]);
	new menu = menu_create(oszthato, "Pont_Handler");
	menu_additem(menu, intelligencia);
	menu_additem(menu, eletenergia);
	menu_additem(menu, ero);
	menu_additem(menu, gyorsasag);
	menu_display(id, menu);
}
public Pont_Handler(id, menu, item)
{
	client_cmd(id, "spk Mod/select");
 
	if(item == MENU_EXIT)
	{
		menu_destroy(menu);
		return PLUGIN_CONTINUE;
	}
	if(eloszthato_pont[id] >= 1)
		//return PLUGIN_CONTINUE;
 
	switch(item) 
	{ 
		case 0: 
		{	
			if(int[id]<140)
			{
				int[id]++;
				eloszthato_pont[id]--;
				ColorChat(id, NORMAL, " ^1Raktal +1 pontot ra!");
			}
			else 
				ColorChat(id, NORMAL, " ^1Elérted a Maximumot");
		}
		case 1: 
		{	
			if(elet[id]<140)
			{
				elet[id]++;
				eloszthato_pont[id]--;
				ColorChat(id, NORMAL, " ^1Raktal +1 pontot ra!");
			}
			else 
				ColorChat(id, NORMAL, " ^1Elérted a Maximumot");
		}
		case 2: 
		{	
			if(vedelem[id]<140)
			{
				vedelem[id]++;
				eloszthato_pont[id]--;
				ColorChat(id, NORMAL, " ^1Raktal +1 pontot ra!");
			}
			else 
				ColorChat(id, NORMAL, " ^1Elérted a Maximumot");
		}
		case 3: 
		{	
			if(sebesseg[id]<140)
			{
				sebesseg[id]++;
				eloszthato_pont[id]--;
				ColorChat(id, NORMAL, " ^1Raktal +1 pontot ra!");
			}
			else 
				ColorChat(id, NORMAL, " ^1Elérted a Maximumot");
		}
	}
	if(eloszthato_pont[id]>0)
		Pontok(id);
 
	return PLUGIN_CONTINUE;
}
 
gomb menne.