Please Help Me. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Please Help Me. (
/showthread.php?tid=273367)
Please Help Me. -
ServerRestart - 01.08.2011
Hello, how would i create a dialog taxi menu? were the player types /taxi, and they have to wait 10secs till they get teleported to the choosen location and, i want to be able to set virtual worlds too, is this possible? Thanks!
Re: Please Help Me. -
Kitten - 01.08.2011
There is a topic called
Script Request
and yes its possible.
SetPlayerVirtualWorld
Re: Please Help Me. -
ServerRestart - 01.08.2011
But how would i set a time limit? so the player has to wait 10 secs for him to teleport.?
Re: Please Help Me. -
emokidx - 01.08.2011
SetTimerEx
Re: Please Help Me. -
Onyx - 01.08.2011
pawn Код:
command(yourcmd, playerid, params[])
{
ShowPlayerDialog(playerid, dialogid, DIALOG_STYLE_LIST, "Title", "Location 1\nLocation 2\nLocation 3", "Button 1", "");
return 1;
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == dialogid)
{
if(listitem == 0)
{
SetTimer("Location1", 10000, false);
}
if(listitem == 1)
{
SetTimer("Location2", 10000, false);
}
if(listitem == 2)
{
SetTimer("Location3", 10000, false);
}
}
return 0;
}
pawn Код:
stock Location1(playerid)
{
SetPlayerPos(playerid, X, Y, Z);
SetPlayerVirtualWorld(playerid, virtualworldid);
}
stock Location2(playerid)
{
SetPlayerPos(playerid, X, Y, Z);
SetPlayerVirtualWorld(playerid, virtualworldid);
}
stock Location3(playerid)
{
SetPlayerPos(playerid, X, Y, Z);
SetPlayerVirtualWorld(playerid, virtualworldid);
}
Adjust script for your needs.