01.04.2012, 04:36
Hello, I have a quick question.
I currently have a Dialog with a teleport in it, but what I want is a Dialog (List Style) that has "Stunts" "Parkours" "Derby", etc. And when a player clicks one, it will bring up another list for specific teleports to that kind of location.
Get what I mean? Here's my current code.
If you need more, let me know. Oh, and here's this.
Thanks for any assistance, appreciated.
I currently have a Dialog with a teleport in it, but what I want is a Dialog (List Style) that has "Stunts" "Parkours" "Derby", etc. And when a player clicks one, it will bring up another list for specific teleports to that kind of location.
Get what I mean? Here's my current code.
pawn Код:
if (dialogid == 100 && response)
{
switch(listitem)
{
case 0:
{
SendClientMessage(playerid,COLOR_GREEN, "You have teleported to: SuperJump 2000. Difficulty: 6/10");
SetPlayerPos(playerid, 904.9202,2517.1836,260.6575);
SetPlayerFacingAngle(playerid, 90);
}
}
}
return 1;
}
pawn Код:
CMD:teles(playerid,params[])
{
ShowPlayerDialog(playerid,100,DIALOG_STYLE_LIST,"Teleports","1.SuperJump 2000. (Difficulty: 6/10)","Teleport", "Cancel");
return 1;
}