help with a command
#2

You just need to change the coordinates ( X, Y, Z ):

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/map"true) == 0)
    {
        
ShowPlayerDialog(playerid123DIALOG_STYLE_LIST"Where do you want to go ?""Beach\nMall\nAirport\nCity Hall""Choose""Cancel");
        return 
1;
    }
    return 
0;
}

public 
OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
    if(
dialogid == 123)
    {
        if(
response)
        {
            if(
listitem == 0
            { 
                
SetPlayerCheckpoint(playeridXYZ8.0);
                
SendClientMessage(playerid0xFFFF00FF"GPS: Beach."); 
            }
            else if(
listitem == 1
            { 
                
SetPlayerCheckpoint(playeridXYZ8.0);
                
SendClientMessage(playerid0xFFFF00FF"GPS: Mall.");
            }
            else if(
listitem == 2)
            { 
                
SetPlayerCheckpoint(playeridXYZ8.0);
                
SendClientMessage(playerid0xFFFF00FF"GPS: Airport.");
            }
            else if(
listitem == 3
            { 
                
SetPlayerCheckpoint(playeridXYZ8.0);
                
SendClientMessage(playerid0xFFFF00FF"GPS: City Hall.");
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
help with a command - by SwatOwner - 06.07.2011, 13:06
Re: help with a command - by Shadoww5 - 06.07.2011, 13:23
Re: help with a command - by Jochemd - 06.07.2011, 13:23
Re: help with a command - by SwatOwner - 06.07.2011, 13:28
Re: help with a command - by Jochemd - 06.07.2011, 13:31
Re: help with a command - by SwatOwner - 06.07.2011, 13:40
Re: help with a command - by SwatOwner - 09.07.2011, 04:07
Re: help with a command - by Kush - 09.07.2011, 06:12
Re: help with a command - by SwatOwner - 09.07.2011, 09:16

Forum Jump:


Users browsing this thread: 1 Guest(s)