13.05.2010, 16:15
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?
Originally Posted by BlackBlood1337
ShowPlayerDialog? Well, if it will help me, yes I do. :P
|
Originally Posted by BlackBlood1337
What I need to know is where to put SetPlayerPos within creating the menu.
|
if(dialogid == 1 && response);
{
SetPlayerPos(....)
}
public OnPlayerSelectedMenuRow(playerid, row) { new Menu:current; current = GetPlayerMenu(playerid); if(current == menu) { switch(row) { case 0: SetPlayerPos(...); case 1: SetPlayerPos(...); } } return 1; }