Creating an Item Box
#1

I am planning on creating a /teleports command with the menu seen on single player. What I need to know is how to have the player teleporting upon selecting one of the teleport areas. Help?
Reply
#2

its TextDraws I think
anyways, you don't want ShowPlayerDialog??
Reply
#3

ShowPlayerDialog? Well, if it will help me, yes I do. :P
Reply
#4

Quote:
Originally Posted by BlackBlood1337
ShowPlayerDialog? Well, if it will help me, yes I do. :P
Okay, so we don't spam, add me in msn virusandchill@yahoo.com
and I'll teach you
Reply
#5

https://sampwiki.blast.hk/wiki/ShowPlayerDialog
https://sampwiki.blast.hk/wiki/OnDialogResponse
Reply
#6

What I need to know is where to put SetPlayerPos within creating the menu.
Reply
#7

Quote:
Originally Posted by BlackBlood1337
What I need to know is where to put SetPlayerPos within creating the menu.
Yes
pawn Код:
if(dialogid == 1 && response);
{
SetPlayerPos(....)
}
Reply
#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


Forum Jump:


Users browsing this thread: 1 Guest(s)