Creating an Item Box
#8

As he already said he wants to use single player menus:

https://sampwiki.blast.hk/wiki/CreateMenu
https://sampwiki.blast.hk/wiki/ShowMenuForPlayer

and regarding your specific question on how to use it:

https://sampwiki.blast.hk/wiki/OnPlayerSelectedMenuRow

Taken directly from the wiki example (modify as you wish):

Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
  new Menu:current;
  current = GetPlayerMenu(playerid);
  if(current == menu)
  {
    switch(row)
    {
      case 0: SetPlayerPos(...);
      case 1: SetPlayerPos(...);
    }
  }
  return 1;
}
Reply


Messages In This Thread
Creating an Item Box - by TheNuttyScientist - 13.05.2010, 16:15
Re: Creating an Item Box - by ViruZZzZ_ChiLLL - 13.05.2010, 16:21
Re: Creating an Item Box - by TheNuttyScientist - 13.05.2010, 16:22
Re: Creating an Item Box - by ViruZZzZ_ChiLLL - 13.05.2010, 16:28
Re: Creating an Item Box - by ettans - 13.05.2010, 16:31
Re: Creating an Item Box - by TheNuttyScientist - 13.05.2010, 16:53
Re: Creating an Item Box - by ViruZZzZ_ChiLLL - 13.05.2010, 16:54
Re: Creating an Item Box - by juice.j - 13.05.2010, 17:02

Forum Jump:


Users browsing this thread: 1 Guest(s)