Little Help [+rep]
#9

Код:
#define DIALOG_SPAWNCHOICE 1
//Other is here:
public OnPlayerSpawn(playerid)
{
 ShowPlayerDialog(playerid, DIALOG_SPAWNCHOICE,DIALOG_STYLE_MSGBOX, "Try Do Spawn", "Place 1 \n Place 2", "Go", "Cancel");
    return 1;
}
//Response:

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    switch(dialogid)
        {
        case DIALOG_SPAWNCHOICE:
            {
            if(response)
                {
if(listitem == 0)
{
                SetPlayerPos(playerid, -536.3784,2592.6067,53.4141);//Cordinates are not real!
                }
            else
                {
                SetPlayerPos(playerid, -536.3784,2592.6067,53.4141);//For Test
                }
        }
    }
    return 1;
}
Reply


Messages In This Thread
Little Help [+rep] - by James Coral - 02.04.2012, 15:01
Re: Little Help [+rep] - by blank. - 02.04.2012, 15:03
Re: Little Help [+rep] - by James Coral - 02.04.2012, 15:05
Re: Little Help [+rep] - by blank. - 02.04.2012, 15:08
Re: Little Help [+rep] - by James Coral - 02.04.2012, 15:53
Re: Little Help [+rep] - by blank. - 02.04.2012, 15:53
Re: Little Help [+rep] - by newbienoob - 02.04.2012, 15:54
Re: Little Help [+rep] - by James Coral - 02.04.2012, 15:55
Re: Little Help [+rep] - by Scripter12345 - 02.04.2012, 15:55

Forum Jump:


Users browsing this thread: 1 Guest(s)