Jump to content
  • 0

Problema /gps


Tech

Question

5 answers to this question

Recommended Posts

  • 0

if(dialogid == DIALOG_LOCATIONS)
    {
          if(response)
        {
            if(listitem == 0)
            {
                SetPlayerCheckpoint(playerid,1219.1234,-1812.3678,16.5938,4.0);
                CP[playerid] = 43;
                return 1;
            }
            if(listitem == 1)
            {
                new string1[MAX_STRING],string2[MAX_STRING],allstring[MAX_STRING];
                format(string1, sizeof(string1), "24/7 Store (5 businesses)\nClothing Store (3 businesses)\nBar (3 businesses)\nBank (2 businesses)\nRent car (1 business)\nGym (1 business)\nBurger Shot (2 businesses)\nPizza Stack (1 business)");
                format(string2, sizeof(string2), "Gun Shop (2 businesses)\nCNN (1 business)\nGas Station (4 businesses)\nSex Shop (1 business)\nPay N Spray (4 businesses)\nCar Mod Shop (2 businesses)");
                format(allstring, sizeof(allstring), "%s\n%s", string1, string2);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSLS, DIALOG_STYLE_LIST, "Los Santos Locations", allstring, "Find", "Back");
                return 1;
            }
            if(listitem == 2)
            {
                new string1[MAX_STRING],string2[MAX_STRING],allstring[MAX_STRING];
                format(string1, sizeof(string1), "24/7 Store (1 business)\nClothing Store (1 business)\nBank (1 business)\nCluckin' Bell (2 businesses)\nBurger Shot (4 businesses)\nGun Shop (1 business)\nCNN (1 business)");
                format(string2, sizeof(string2), "Gas Station (6 businesses)\nCasino (1 business)\nSex Shop (1 business)\nPay N Spray (2 businesses)\nCar Mod Shop (1 business)");
                format(allstring, sizeof(allstring), "%s\n%s", string1, string2);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSLV, DIALOG_STYLE_LIST, "Las Venturas Locations", allstring, "Find", "Back");
                return 1;
            }
            if(listitem == 3)
            {
                ShowPlayerDialog(playerid, DIALOG_HQS, DIALOG_STYLE_LIST, "SERVER: HQ Locations", "Los Santos Police Department\nNational Guard\nHitman Agency\nFBI\nNews Reporters\nGrove Street\nBallas\nLos Aztecas\nSchool Instructors\nParamedic Department\nLos Vagos\nTaxi LS\nLas Venturas Police Department", "Checkpoint", "Back");
                return 1;
            }
            if(listitem == 4)
            {
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSMODS, DIALOG_STYLE_LIST, "SERVER: Vehicle Mod Shop Locations", "Tuning LS\nTuning LV\nLowrider Tuning", "Checkpoint", "Back");
                return 1;
            }
            if(listitem == 5) // PaintBall LS
            {
                SetPlayerCheckpoint(playerid,1154.4122,-1440.0548,15.7969,4.0);
                CP[playerid] = 43;
                return 1;
            }
            /*if(listitem == 5)
            {
                SetPlayerCheckpoint(playerid,1310.1316,-1367.7863,13.5405,4.0);
                CP[playerid] = 43;
                return 1;
            }*/
            if(listitem == 6)
            {
                SetPlayerCheckpoint(playerid,328.3534,-1513.1687,36.0391,4.0);
                CP[playerid] = 43;
                return 1;
            }
        }
        return 1;
    }
    if(dialogid == DIALOG_LOCATIONSLS)
    {
        if(response)
        {
            if(listitem == 0)
            {
                new Float: Position[3];
                new Float: Distance[6];
                new string1[MAX_STRING];
                GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
                Distance[1] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[10][bEntranceX], BizzInfo[10][bEntranceY], BizzInfo[10][bEntranceZ]);
                Distance[2] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[11][bEntranceX], BizzInfo[11][bEntranceY], BizzInfo[11][bEntranceZ]);
                Distance[3] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[12][bEntranceX], BizzInfo[12][bEntranceY], BizzInfo[12][bEntranceZ]);
                Distance[4] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[13][bEntranceX], BizzInfo[13][bEntranceY], BizzInfo[13][bEntranceZ]);
                Distance[5] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[14][bEntranceX], BizzInfo[14][bEntranceY], BizzInfo[14][bEntranceZ]);
                format(string1,sizeof(string1),"24/7 Store (%.1fm away)\n24/7 Store (%.1fm away)\n24/7 Store (%.1fm away)\n24/7 Store (%.1fm away)\n24/7 Store (%.1fm away)",Distance[1],Distance[2],Distance[3],Distance[4],Distance[5]);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONS247LS, DIALOG_STYLE_LIST, "24/7 Store (5 businesses) Locations", string1, "Find", "Back");
            }
            if(listitem == 1)
            {
                new Float: Position[3];
                new Float: Distance[4];
                new string1[MAX_STRING];
                GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
                Distance[1] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[30][bEntranceX], BizzInfo[30][bEntranceY], BizzInfo[30][bEntranceZ]);
                Distance[2] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[32][bEntranceX], BizzInfo[32][bEntranceY], BizzInfo[32][bEntranceZ]);
                Distance[3] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[53][bEntranceX], BizzInfo[53][bEntranceY], BizzInfo[53][bEntranceZ]);
                format(string1,sizeof(string1),"Clothing Store (%.1fm away)\nClothing Store (%.1fm away)\nClothing Store (%.1fm away)",Distance[1],Distance[2],Distance[3]);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSCLOTHINGLS, DIALOG_STYLE_LIST, "Clothing Store (3 businesses) Locations", string1, "Find", "Back");
            }
            if(listitem == 2)
            {
                new Float: Position[3];
                new Float: Distance[4];
                new string1[MAX_STRING];
                GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
                Distance[1] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[3][bEntranceX], BizzInfo[3][bEntranceY], BizzInfo[3][bEntranceZ]);
                Distance[2] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[4][bEntranceX], BizzInfo[4][bEntranceY], BizzInfo[4][bEntranceZ]);
                Distance[3] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[5][bEntranceX], BizzInfo[5][bEntranceY], BizzInfo[5][bEntranceZ]);
                format(string1,sizeof(string1),"Bar (%.1fm away)\nBar (%.1fm away)\nBar (%.1fm away)",Distance[1],Distance[2],Distance[3]);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSBARLS, DIALOG_STYLE_LIST, "Bar (3 businesses) Locations", string1, "Find", "Back");
            }
            if(listitem == 3)
            {
                new Float: Position[3];
                new Float: Distance[3];
                new string1[MAX_STRING];
                GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
                Distance[1] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[1][bEntranceX], BizzInfo[1][bEntranceY], BizzInfo[1][bEntranceZ]);
                Distance[2] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[27][bEntranceX], BizzInfo[27][bEntranceY], BizzInfo[27][bEntranceZ]);
                format(string1,sizeof(string1),"Bank (%.1fm away)\nBank (%.1fm away)",Distance[1],Distance[2]);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSBANKLS, DIALOG_STYLE_LIST, "Bank (2 businesses) Locations", string1, "Find", "Back");
            }
            if(listitem == 4)
            {
                new Float: Position[3];
                new Float: Distance[2];
                new string1[MAX_STRING];
                GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
                Distance[1] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[31][bEntranceX], BizzInfo[31][bEntranceY], BizzInfo[31][bEntranceZ]);
                format(string1,sizeof(string1),"Rent car (%.1fm away)",Distance[1]);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSRENTLS, DIALOG_STYLE_LIST, "Rent car (1 business) Locations", string1, "Find", "Back");
            }
            if(listitem == 5)
            {
                new Float: Position[3];
                new Float: Distance[2];
                new string1[MAX_STRING];
                GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
                Distance[1] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[25][bEntranceX], BizzInfo[25][bEntranceY], BizzInfo[25][bEntranceZ]);
                format(string1,sizeof(string1),"Gym (%.1fm away)",Distance[1]);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSGYMLS, DIALOG_STYLE_LIST, "Gym (1 business) Locations", string1, "Find", "Back");
            }
            if(listitem == 6)
            {
                new Float: Position[3];
                new Float: Distance[3];
                new string1[MAX_STRING];
                GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
                Distance[1] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[15][bEntranceX], BizzInfo[15][bEntranceY], BizzInfo[15][bEntranceZ]);
                Distance[2] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[16][bEntranceX], BizzInfo[16][bEntranceY], BizzInfo[16][bEntranceZ]);
                format(string1,sizeof(string1),"Burger Shot (%.1fm away)\nBurger Shot (%.1fm away)",Distance[1],Distance[2]);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSBURGERLS, DIALOG_STYLE_LIST, "Burger Shot (2 businesses) Locations", string1, "Find", "Back");
            }
            if(listitem == 7)
            {
                new Float: Position[3];
                new Float: Distance[2];
                new string1[MAX_STRING];
                GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
                Distance[1] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[26][bEntranceX], BizzInfo[26][bEntranceY], BizzInfo[26][bEntranceZ]);
                format(string1,sizeof(string1),"Pizza Stack (%.1fm away)",Distance[1]);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSPIZZALS, DIALOG_STYLE_LIST, "Pizza Stack (1 business) Locations", string1, "Find", "Back");
            }
            if(listitem == 8)
            {
                new Float: Position[3];
                new Float: Distance[3];
                new string1[MAX_STRING];
                GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
                Distance[1] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[2][bEntranceX], BizzInfo[2][bEntranceY], BizzInfo[2][bEntranceZ]);
                Distance[2] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[9][bEntranceX], BizzInfo[9][bEntranceY], BizzInfo[9][bEntranceZ]);
                format(string1,sizeof(string1),"Gun Shop (%.1fm away)\nGun Shop (%.1fm away)",Distance[1],Distance[2]);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSGSLS, DIALOG_STYLE_LIST, "Gun Shop (2 businesses) Locations", string1, "Find", "Back");
            }
            if(listitem == 9)
            {
                new Float: Position[3];
                new Float: Distance[2];
                new string1[MAX_STRING];
                GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
                Distance[1] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[28][bEntranceX], BizzInfo[28][bEntranceY], BizzInfo[28][bEntranceZ]);
                format(string1,sizeof(string1),"CNN (%.1fm away)",Distance[1]);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSCNNLS, DIALOG_STYLE_LIST, "CNN (1 business) Locations", string1, "Find", "Back");
            }
            if(listitem == 10)
            {
                new Float: Position[3];
                new Float: Distance[5];
                new string1[MAX_STRING];
                GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
                Distance[1] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[33][bEntranceX], BizzInfo[33][bEntranceY], BizzInfo[33][bEntranceZ]);
                Distance[2] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[42][bEntranceX], BizzInfo[42][bEntranceY], BizzInfo[42][bEntranceZ]);
                Distance[3] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[43][bEntranceX], BizzInfo[43][bEntranceY], BizzInfo[43][bEntranceZ]);
                Distance[4] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[44][bEntranceX], BizzInfo[44][bEntranceY], BizzInfo[44][bEntranceZ]);
                format(string1,sizeof(string1),"Gas Station (%.1fm away)\nGas Station (%.1fm away)\nGas Station (%.1fm away)\nGas Station (%.1fm away)",Distance[1],Distance[2],Distance[3],Distance[4]);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSGASLS, DIALOG_STYLE_LIST, "Gas Station (4 businesses) Locations", string1, "Find", "Back");
            }
            if(listitem == 11)
            {
                new Float: Position[3];
                new Float: Distance[2];
                new string1[MAX_STRING];
                GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
                Distance[1] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[7][bEntranceX], BizzInfo[7][bEntranceY], BizzInfo[7][bEntranceZ]);
                format(string1,sizeof(string1),"Sex Shop (%.1fm away)",Distance[1]);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSSEXLS, DIALOG_STYLE_LIST, "Sex Shop (1 business) Locations", string1, "Find", "Back");
            }
            if(listitem == 12)
            {
                new Float: Position[3];
                new Float: Distance[5];
                new string1[MAX_STRING];
                GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
                Distance[1] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[34][bEntranceX], BizzInfo[34][bEntranceY], BizzInfo[34][bEntranceZ]);
                Distance[2] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[35][bEntranceX], BizzInfo[35][bEntranceY], BizzInfo[35][bEntranceZ]);
                Distance[3] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[36][bEntranceX], BizzInfo[36][bEntranceY], BizzInfo[36][bEntranceZ]);
                Distance[4] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[37][bEntranceX], BizzInfo[37][bEntranceY], BizzInfo[37][bEntranceZ]);
                format(string1,sizeof(string1),"Pay N Spray (%.1fm away)\nPay N Spray (%.1fm away)\nPay N Spray (%.1fm away)\nPay N Spray (%.1fm away)",Distance[1],Distance[2],Distance[3],Distance[4]);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSPNSLS, DIALOG_STYLE_LIST, "Pay N Spray (4 businesses) Locations", string1, "Find", "Back");
            }
            if(listitem == 13)
            {
                new Float: Position[3];
                new Float: Distance[3];
                new string1[MAX_STRING];
                GetPlayerPos(playerid, Position[0], Position[1], Position[2]);
                Distance[1] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[38][bEntranceX], BizzInfo[38][bEntranceY], BizzInfo[38][bEntranceZ]);
                Distance[2] = GetDistanceBetweenPoints(Position[0],Position[1], Position[2], BizzInfo[39][bEntranceX], BizzInfo[39][bEntranceY], BizzInfo[39][bEntranceZ]);
                format(string1,sizeof(string1),"Car Mod Shop (%.1fm away)\nCar Mod Shop (%.1fm away)",Distance[1],Distance[2]);
                ShowPlayerDialog(playerid, DIALOG_LOCATIONSMODLS, DIALOG_STYLE_LIST, "Car Mod Shop (2 businesses) Locations", string1, "Find", "Back");
            }

 

 

 

 

 

Doar la CNN am problema, in rest toate merg.

Edited by Tech
Link to comment
Share on other sites

  • 0
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.