Teleport to event location CMD/DIALOG
#3

PHP код:
CMD:event(playerid,params[])
{
    
ShowPlayerDialog(playerid,7323,DIALOG_STYLE_LIST"Event Locations","Event Location 1/nEvent Location 2/nEvent Location 3/nEvent Location 4""Select""Close");
}
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 7323)
    {
        if(
response)
        {
            switch(
listitem)
            {
                case 
0:SetPlayerPos(playeridxyz);
                case 
1:SetPlayerPos(playeridxyz);
                case 
2:SetPlayerPos(playeridxyz);
                case 
3:SetPlayerPos(playeridxyz);
            }
        }
        return 
1;
    }
    return 
0;

Replace x,y,z with your event location coordinates
Reply


Messages In This Thread
Teleport to event location CMD/DIALOG - by NexySamp - 03.10.2015, 10:01
Re: Teleport to event location CMD/DIALOG - by xTURBOx - 03.10.2015, 12:24
Re: Teleport to event location CMD/DIALOG - by xTURBOx - 03.10.2015, 12:36
Re: Teleport to event location CMD/DIALOG - by NexySamp - 03.10.2015, 12:43
Re: Teleport to event location CMD/DIALOG - by NexySamp - 03.10.2015, 12:46
Re: Teleport to event location CMD/DIALOG - by NexySamp - 03.10.2015, 12:52
Re: Teleport to event location CMD/DIALOG - by xTURBOx - 05.10.2015, 10:09

Forum Jump:


Users browsing this thread: 3 Guest(s)