Please Help Me.
#1

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!
Reply
#2

There is a topic called Script Request

and yes its possible. SetPlayerVirtualWorld
Reply
#3

But how would i set a time limit? so the player has to wait 10 secs for him to teleport.?
Reply
#4

SetTimerEx
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)