[Ajuda] OnDialogResponse
#4

Quote:
Originally Posted by DarkZin
Посмотреть сообщение
Entгo, eu iria criar, e queria saber uma base pra continuar dai..
Код:
#define DIALOG_GPS 100

CMD:gps(playerid)
{
new dGPS[126];
strcat(dGPS, "Centro de Licenзas.\n");
ShowPlayerDialog(playerid, DIALOG_GPS, DIALOG_STYLE_LIST, "GPS", dGPS, "Ok", "Fechar");
return 1;
}

if(dialogid == DIALOG_GPS)
{
        if(response)
        {
	        switch(listitem)
	        {
	            case 0:
	            {
                     SetPlayerRaceCheckpoint(playerid, 2, X, Y, Z, 0, 0, 0, 3.10);
                     SendClientMessage(playerid, -1, "Vocк marcou o 'Centro de Licencas no seu GPS!");
                     SendClientMessage(playerid, -1, "Siga o ponto vermelho em seu mapa.");
                    }
	        }
        }
        return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
        if(PlayerToPoint(8.0,playerid,X, Y, Z))
        DisablePlayerCheckpoint(playerid);
        SendClientMessage(playerid, -1, "Vocк chegou ao seu destino!");
	return 1;
}
Tenta usar de base!
Se for +/- isso que estб procurando.
Reply


Messages In This Thread
OnDialogResponse - by DarkZin - 04.01.2017, 14:31
Re: OnDialogResponse - by didimk157 - 04.01.2017, 15:15
Re: OnDialogResponse - by DarkZin - 04.01.2017, 20:27
Re: OnDialogResponse - by Felipe1241421 - 04.01.2017, 21:00
Re: OnDialogResponse - by AuhMaru - 05.01.2017, 12:51
Re: OnDialogResponse - by Jaaapa - 05.01.2017, 13:58
Re: OnDialogResponse - by johntrybescripter - 05.01.2017, 17:26
Re: OnDialogResponse - by IlanZ - 05.01.2017, 21:08

Forum Jump:


Users browsing this thread: 1 Guest(s)