[Ajuda] Sistema de GPS
#4

pawn Код:
#include <a_samp>

#define FILTERSCRIPT

#define DIALOG_GPS 1000

public OnPlayerCommandText(playerid, cmdtext[])
{
    if(!strcmp(cmdtext, "/gps", true))
    {
        ShowPlayerDialog(playerid, DIALOG_GPS, DIALOG_STYLE_LIST, "GPS", "Prefeitura \nDepartamento de Polнcia", "Selecionar", "Fechar");
        return 1;
    }
    return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == DIALOG_GPS)
    {
        if(response)
        {
            switch(listitem)
            {
                case 0:
                {
                SetPlayerCheckpoint(playerid, 1467.7356, -1767.4352, 13.5469, 3.0);
                }
                case 1:
                {
                SetPlayerCheckpoint(playerid, 1540.0187, -1678.8928, 13.5498, 3.0);
                }
            }
        }
    }
    return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
    DisablePlayerCheckpoint(playerid);
    return 1;
}
Criei esta pequena base para vocк.
Reply


Messages In This Thread
Sistema de GPS - by FireBallPlays - 29.09.2012, 22:30
Re: Sistema de GPS - by Ley - 29.09.2012, 22:41
Re: Sistema de GPS - by FireBallPlays - 29.09.2012, 22:43
Re: Sistema de GPS - by Ouro - 29.09.2012, 22:53

Forum Jump:


Users browsing this thread: 1 Guest(s)