13.05.2010, 17:02
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):
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; }