WIERD !!! O_O
#8

ok so i got this and i dont know where to put the coordinates where player to teleport on clicking one line of the list.

Код:
// Test menu functionality filterscipt

#include <a_samp>

#define TEST_MENU_ITEMS 6

new Menu:TestMenu;
new TestMenuStrings[5][16] = {"DM Area", "Race Area", "Stunt Area", "Relax Area", "Admin Area"};

HandleTestMenuSelection(playerid, row)
{
	new s[256];

	if(row < TEST_MENU_ITEMS) {
		format(s,256,"You selected item %s",TestMenuStrings[row]);
		SendClientMessage(playerid,0xFFFFFFFF,s);
	}
}

InitTestMenu()
{
	TestMenu = CreateMenu("Test Menu", 1, 200.0, 150.0, 200.0, 200.0);

	for(new x=0; x < TEST_MENU_ITEMS; x++) {
    	        AddMenuItem(TestMenu, 0, TestMenuStrings[x]);
	}
}

public OnFilterScriptInit()
{
   	InitTestMenu();
}

public OnPlayerSelectedMenuRow(playerid, row)
{
        new Menu:PlayerMenu = GetPlayerMenu(playerid);

        if(PlayerMenu == TestMenu) {
	     HandleTestMenuSelection(playerid, row);
	}
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if(!strcmp(cmdtext, "/teleport", true))	{
    	     ShowMenuForPlayer(TestMenu, playerid);
    	     return 1;
	}
	return 0;
}
please help
Reply


Messages In This Thread
WIERD !!! O_O - by [Lsrcr]Rafa - 28.08.2010, 10:11
Re: WIERD !!! O_O - by LifeStyle - 28.08.2010, 10:17
Re: WIERD !!! O_O - by R@ger - 28.08.2010, 10:17
Re: WIERD !!! O_O - by Macluawn - 28.08.2010, 10:18
Re: WIERD !!! O_O - by [Lsrcr]Rafa - 28.08.2010, 10:23
Re: WIERD !!! O_O - by [Lsrcr]Rafa - 28.08.2010, 10:26
Re: WIERD !!! O_O - by Adil - 28.08.2010, 10:28
Re: WIERD !!! O_O - by [Lsrcr]Rafa - 28.08.2010, 11:14
Re: WIERD !!! O_O - by Adil - 28.08.2010, 11:22

Forum Jump:


Users browsing this thread: 2 Guest(s)