[Pedido] Um comando de GPS
#6

n esqueзa de me dizer se funcionou
pawn Код:
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
#define GPS_SYSTEM 0


public OnFilterScriptInit()
{
    print("O Filterscript de GPS foi carregado com sucesso");
    return 1;
}

public OnFilterScriptExit()
{
    return 1;
}

public OnPlayerConnect(playerid)
{
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext,"/gps",true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            ShowPlayerDialog(playerid,GPS_SYSTEM,DIALOG_STYLE_LIST,"{FFC400}- {FFFFFF}Global Position  System","Prefeitura.\nDepartamento Policial\nAlhambra\nEstaзгo Unit\n24/7\nPosto Sul\nPosto Norte\nPizzaria Stacked\nAcademia\nBinco\nAeroporto de Los Santos\nPuteiro PigPen\nMotel Jefferson\nPark Gleen\nPista de Skate\nHospital All Saints\nHospital County General\nAmmu Nation\nShopping Center\n{FFC400}Desligar GPS","Selecionar","Fechar");
            return 1;
        }
    }
    return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == GPS_SYSTEM)
    {
        if(response)
        {
            if(listitem == 0)
                    {
                    SetPlayerCheckpoint(playerid,1481.3762,-1735.0176,13.1046,7.0);
                    SetPlayerMapIcon(playerid, 0, 1481.3762,-1735.0176,13.1046, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                            SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Prefeitura foi marcada no mapa.");
                            return 1;
            }
            if(listitem == 1)
            {
                SetPlayerCheckpoint(playerid,1535.9352,-1673.6252,13.1050,7.0);
                SetPlayerMapIcon(playerid, 0, 1535.9352,-1673.6252,13.1050, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Departamento de Polнcia no mapa.");
            }
            if(listitem == 2)
            {
                SetPlayerCheckpoint(playerid,1827.3373,-1682.8510,13.1834,7.0);
                SetPlayerMapIcon(playerid, 0, 1827.3373,-1682.8510,13.1834, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Alhambra foi marcada no mapa.");
            }
            if(listitem == 3)
            {
                SetPlayerCheckpoint(playerid,1713.4973,-1857.9926,13.2941,7.0);
                SetPlayerMapIcon(playerid, 0, 1713.4973,-1857.9926,13.2941, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Estaзгo Unit foi marcada no mapa.");
            }
            if(listitem == 4)
            {
                SetPlayerCheckpoint(playerid,1830.5277,-1842.4434,13.3006,7.0);
                SetPlayerMapIcon(playerid, 0, 1830.5277,-1842.4434,13.3006, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A 24/7 foi marcada no mapa.");
                return 1;
            }
            if(listitem == 5)
            {
                SetPlayerCheckpoint(playerid,1944.2931,-1766.9156,13.1062,7.0);
                SetPlayerMapIcon(playerid, 0, 1944.2931,-1766.9156,13.1062, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Posto Sul foi marcado no mapa.");
            }
            if(listitem == 6)
            {
                SetPlayerCheckpoint(playerid,1007.1274,-955.4174,41.4625,7.0);
                SetPlayerMapIcon(playerid, 0, 1007.1274,-955.4174,41.4625, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Posto Norte foi marcado no mapa.");
            }
            if(listitem == 7)
            {
                SetPlayerCheckpoint(playerid,2086.6018,-1796.9097,13.1036,7.0);
                SetPlayerMapIcon(playerid, 0, 2086.6018,-1796.9097,13.1036, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Pizzaria Stacked foi marcada no mapa.");
            }
            if(listitem == 8)
            {
                SetPlayerCheckpoint(playerid,2223.2188,-1725.7490,13.1978,7.0);
                SetPlayerMapIcon(playerid, 0, 2223.2188,-1725.7490,13.1978, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Academia foi marcada no mapa.");
                return 1;
            }
            if(listitem == 9)
            {
                SetPlayerCheckpoint(playerid,2245.2305,-1660.8929,15.0889,7.0);
                SetPlayerMapIcon(playerid, 0, 2245.2305,-1660.8929,15.0889, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Binco foi marcada no mapa.");
            }
            if(listitem == 10)
            {
                        SetPlayerCheckpoint(playerid,1961.8196,-2193.7415,13.2670,7.0);
                SetPlayerMapIcon(playerid, 0, 1961.8196,-2193.7415,13.2670, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Aeroporto de Los Santos foi marcado no mapa.");
            }
            if(listitem == 11)
            {
                SetPlayerCheckpoint(playerid,2420.4238,-1237.1250,24.0127,7.0);
                SetPlayerMapIcon(playerid, 0, 2420.4238,-1237.1250,24.0127, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O puteiro PigPen foi marcado no mapa.");
            }
            if(listitem == 12)
            {
                    SetPlayerCheckpoint(playerid,2221.1968,-1144.8896,25.5154,7.0);
                    SetPlayerMapIcon(playerid, 0, 2221.1968,-1144.8896,25.5154, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                            SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Motel Jefferson foi marcado no mapa.");
                return 1;
            }
            if(listitem == 13)
            {
                SetPlayerCheckpoint(playerid,1904.6732,-1179.5765,23.0765,7.0);
                SetPlayerMapIcon(playerid, 0, 1904.6732,-1179.5765,23.0765, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Park Gleen foi marcado no mapa.");
            }
            if(listitem == 14)
            {
                SetPlayerCheckpoint(playerid,1899.2813,-1401.5333,10.1659,7.0);
                SetPlayerMapIcon(playerid, 0, 1899.2813,-1401.5333,10.1659, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Pista de Skate foi marcada no mapa.");
            }
            if(listitem == 15)
            {
                SetPlayerCheckpoint(playerid,1190.8040,-1328.0825,13.2014,7.0);
                SetPlayerMapIcon(playerid, 0, 1190.8040,-1328.0825,13.2014, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Hospital All Saints foi marcado no mapa.");
                    }
                    if(listitem == 16)
                        {
                SetPlayerCheckpoint(playerid,2016.8428,-1432.0167,13.2625,7.0);
                SetPlayerMapIcon(playerid, 0, 2016.8428,-1432.0167,13.2625, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Hospital County General foi marcado no mapa.");
                return 1;
            }
            if(listitem == 17)
            {
                SetPlayerCheckpoint(playerid,1362.2203,-1278.0447,13.1828,7.0);
                SetPlayerMapIcon(playerid, 0, 1362.2203,-1278.0447,13.1828, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}A Ammu Nation foi marcada no mapa.");
            }
            if(listitem == 18)
            {
                SetPlayerCheckpoint(playerid,1122.7183,-1462.1166,15.5171,7.0);
                SetPlayerMapIcon(playerid, 0, 1122.7183,-1462.1166,15.5171, 0, 0xFFFFFFAA, MAPICON_GLOBAL_CHECKPOINT);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O Shopping Center foi marcado no mapa.");
            }
            if(listitem == 19)
            {
                DisablePlayerCheckpoint(playerid);
                RemovePlayerMapIcon(playerid, 0);
                SendClientMessage(playerid,0xFFC400AA,"- {FFFFFF}O GPS foi desativado!.");
            }
        }
    }
    return 1;
}
public OnPlayerEnterCheckpoint(playerid)
{
    DisablePlayerCheckpoint(playerid);
    RemovePlayerMapIcon(playerid, 0);
    return 1;
}
#endif
Reply


Messages In This Thread
Um comando de GPS - by Woof - 11.09.2016, 18:53
Re: Um comando de GPS - by 99fe3rnando - 11.09.2016, 21:28
Re: Um comando de GPS - by Woof - 11.09.2016, 23:09
Re: Um comando de GPS - by Ender_ - 12.09.2016, 00:01
Re: Um comando de GPS - by Woof - 12.09.2016, 01:10
Re: Um comando de GPS - by Ender_ - 12.09.2016, 01:34
Re: Um comando de GPS - by Woof - 12.09.2016, 01:51
Re: Um comando de GPS - by Ender_ - 12.09.2016, 02:02
Re: Um comando de GPS - by Monotox - 12.09.2016, 02:08
Re: Um comando de GPS - by Ender_ - 12.09.2016, 02:13

Forum Jump:


Users browsing this thread: 1 Guest(s)