[Ajuda] Alterar as Coordenadas dos Checkpoints
#1

Boas pessoal, eu tenho aqui um GM e estou a editб-lo, mas agora deparei-me com um problema que nгo consigo resolver, й o seguinte, quando altero as coordenadas dos checkpoints eles nгo aparecem nas coordenadas que eu meti, aparecem noutra parte do mapa


O cуdigo й o seguinte:

#define :

pawn Код:
//__________________________|Limpa Ruas|__________________________//
#define Checkpointlr1 1274.3405,346.9445,19.0761
#define Checkpointlr2 1303.3195,316.4876,19.0746
#define Checkpointlr3 1348.4449,296.5092,19.0719
#define Checkpointlr4 1346.5294,260.7894,19.0745
#define Checkpointlr5 1324.5778,236.6557,19.0748
#define Checkpointlr6 1273.6318,259.0706,19.0755
#define Checkpointlr7 1235.4199,257.7520,19.0744
#define Checkpointlr8 1225.0713,199.1514,19.0744
#define Checkpointlr9 1265.6025,189.7048,19.0745
#define Checkpointlr10 1286.2958,235.1936,19.0726
#define Checkpointlr11 1305.7303,279.6805,19.0746
#define Checkpointlr12 1339.6298,356.1128,19.0795
#define Checkpointlr13 1359.1035,399.9851,19.0749
#define Checkpointlr14 1353.5264892578,461.2546081543,20.045375823975
#define Checkpointlr15 1293.9302978516,490.85214233398,19.529043197632
#define Checkpointlr16 1246.0787353516,515.85369873047,19.358551025391
#define Checkpointlr17 1210.5114746094,533.74652099609,19.361978530884
#define Checkpointlr18 1178.4084472656,549.29119873047,19.728921890259
#define Checkpointlr19 1118.8670654297,577.35321044922,19.27458190918
#define Checkpointlr20 1069.6754150391,561.97485351563,19.602630615234
#define Checkpointlr21 1017.5905151367,475.59982299805,19.33766746521
#define Checkpointlr22 1071.5870361328,451.9841003418,22.217239379883
#define Checkpointlr23 1118.9097900391,417.7333984375,26.888515472412
#define Checkpointlr24 1210.5296630859,357.7561340332,18.943290710449
#define Checkpointlr25 1198.2523193359,292.38412475586,19.403242111206
#define Checkpointlr26 1290.1313476563,245.57012939453,19.255342483521
#define Checkpointlr27 1294.8762207031,325.81011962891,19.661846160889
#define Chackpointlr28 1287.1396484375,348.32522583008,19.725868225098

pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 574 && (IsALimpaRuasCar(GetPlayerVehicleID(playerid))))
     {
          if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpointlr1 ))
     {
          PlayerActionMessage(playerid,30.0,"pressiona o botгo para girar as vassouras rotativas.");
          SetPlayerCheckpoint(playerid, Checkpointlr2, 7.0);

     }
          if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpointlr2 ))
     {
          SetPlayerCheckpoint(playerid, Checkpointlr3, 7.0);
     }
          if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpointlr3 ))
     {
          SetPlayerCheckpoint(playerid, Checkpointlr4, 7.0);
     }
          if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpointlr4))
     {
          SetPlayerCheckpoint(playerid, Checkpointlr5, 7.0);
     }
          if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpointlr5))
     {
          SetPlayerCheckpoint(playerid, Checkpointlr6, 7.0);
     }
          if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpointlr6))
     {
          SetPlayerCheckpoint(playerid, Checkpointlr7, 7.0);
     }
          if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpointlr7))
     {
          SetPlayerCheckpoint(playerid, Checkpointlr8, 7.0);
     }
          if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpointlr8))
     {
          SetPlayerCheckpoint(playerid, Checkpointlr9, 7.0);
     }
          if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpointlr9))
     {
          SetPlayerCheckpoint(playerid, Checkpointlr10, 7.0);
     }
         if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpointlr10))
     {
          SetPlayerCheckpoint(playerid, Checkpointlr11, 7.0);
     }
          if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpointlr11))
     {
          SetPlayerCheckpoint(playerid, Checkpointlr12, 7.0);
          SetTimerEx("FreezeTimer", 10*1000, false, "i", playerid);
          TogglePlayerControllable(playerid, 0);
          SendClientMessage(playerid, COLOR_WHITE, "Esta parte da estrada estб muito suja, espera um pouco para limpar melhor esta zona.");

     }
          if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpointlr12))
     {
          SetPlayerCheckpoint(playerid, Checkpointlr13, 7.0);
     }
         if (IsPlayerInRangeOfPoint(playerid, 7.0,Checkpointlr13))
     {
          SetPlayerCheckpoint (playerid, 7.0, Checkpointlr14);
     }
         if (IsPlayerInRangeOfPoint (playerid, 7.0,Checkpointlr14))
     {
          SetPlayerCheckpoint (playerid, 7.0, Checkpointlr15);
     }
         if (IsPlayerInRangeOfPoint (playerid, 7.0,Checkpointlr15))
     {
          SetPlayerCheckpoint (playerid, 7.0, Checkpointlr16);
     }
         if (IsPlayerInRangeOfPoint (playerid, 7.0,Checkpointlr16))
     {
          SetPlayerCheckpoint (playerid, 7.0, Checkpointlr17);
     }
         if (IsPlayerInRangeOfPoint (playerid, 7.0,Checkpointlr17))
     {
          SetPlayerCheckpoint (playerid, 7.0, Checkpointlr18);
     }
         if (IsPlayerInRangeOfPoint (playerid, 7.0,Checkpointlr18))
     {
          SetPlayerCheckpoint (playerid, 7.0, Checkpointlr19);
     }
         if (IsPlayerInRangeOfPoint (playerid, 7.0, Checkpoint19))
     {
          SetPlayerCheckpoint (playerid, 7.0, Checkpointlr20);
     }
         if (IsPlayerInRangeOfPoint (playerid, 7.0, Checkpoint20))
     {
          SetPlayerCheckpoint (playerid, 7.0, Checkpointlr21);
     }
         if (IsPlayerInRangeOfPoint (playerid, 7.0, Checkpointlr21))
     {
          SetPlayerCheckpoint (playerid, 7.0, Checkpointlr22);
     }
         if (IsPlayerInRangeOfPoint (playerid, 7.0, Checkpointlr22))
     {
          SetPlayerCheckpoint (playerid, 7.0, Checkpointlr23);
     }
         if (IsPlayerInRangeOfPoint (playerid, 7.0, Checkpointlr23))
     {
          SetPlayerCheckpoint (playerid, 7.0, Checkpointlr24);
     }
         if (IsPlayerInRangeOfPoint (playerid, 7.0, Checkpointlr24))
     {
          SetPlayerCheckpoint (playerid, 7.0, Checkpointlr25);
     }
         if (IsPlayerInRangeOfPoint (playerid, 7.0, Checkpointlr25))
     {
          SetPlayerCheckpoint (playerid, 7.0, Checkpointlr26);
     }
         if (IsPlayerInRangeOfPoint (playerid, 7.0, Checkpointlr26))
     {
          SetPlayerCheckpoint (playerid, 7.0, Checkpointlr27);
     }
         if (IsPlayerInRangeOfPoint (playerid, 7.0, Checkpointlr27))
     {
         EngineStatus[GetPlayerVehicleID(playerid)] = 0;
              new veh;
              Fuel[veh] = 100;
              veh = GetPlayerVehicleID(playerid);
              RemovePlayerFromVehicle(playerid);
         SendClientMessage(playerid, COLOR_WHITE, "Muito bem as ruas agora estгo limpas, foste pago pela Camara Municipal.");
         PlayerActionMessage(playerid,30.0,"pega em algum dinheiro.");
         PlayerActionMessage(playerid,30.0,"tira a carteira e coloca o dinheiro.");
         PlayerActionMessage(playerid,30.0,"guarda a carteira.");
         SetVehicleToRespawn(veh);
         DisablePlayerCheckpoint(playerid);
         PlayerInfo[playerid][pExp1] +=1;
         PlayerInfo[playerid][pBanho] +=2;
         if(PlayerInfo[playerid][pExp1] == 1 || PlayerInfo[playerid][pExp1] == 2 || PlayerInfo[playerid][pExp1] == 3 || PlayerInfo[playerid][pExp1] == 4 || PlayerInfo[playerid][pExp1] == 5 || PlayerInfo[playerid][pExp1] == 6 || PlayerInfo[playerid][pExp1] == 7 || PlayerInfo[playerid][pExp1] == 8 || PlayerInfo[playerid][pExp1] == 9 || PlayerInfo[playerid][pExp1] == 10)
         {
            DynamicFactions[5][fBank] -= 30;
            if (PlayerInfo[playerid][pCEng] == 0)
                {
                    GivePlayerCash(playerid, 30);PlayerInfo[playerid][pFundo] += 50;
                }
                else
                {
                GivePlayerCash(playerid, 80);PlayerInfo[playerid][pFundo] += 50;
                SendClientMessage(playerid,COLOR_WHITE,"Com o curso de engenharia mais 50.");
                }
            OnPlayerDataSave(playerid);
            PlayerInfo[playerid][pDJob] = 7;
            //SetTimerEx("Doingjob", 5*60*1000, false, "i", playerid);
            return 1;
         }

Alguйm me consegue ajudar? Por favor..
Reply
#2

Primeiro tenta nгo editar coisas que nгo sгo tuas.
Esse GM й roubado.
Reply
#3

Quote:
Originally Posted by Pedronobre
Посмотреть сообщение
Primeiro tenta nгo editar coisas que nгo sгo tuas.
Esse GM й roubado.
Roubado ? Men, ele foi publicado na net!
Reply
#4

talvez tenha algo a mais pra editar, GM dos outros sгo assim.
Mais seguindo a lуgica do tуpico, Tente usar /* */ nos Defines, e trocar os 'SetPlayerCheckpoint' de Define para as coordenadas desejadas..
Reply
#5

Quote:
Originally Posted by Willian_Luigi
Посмотреть сообщение
talvez tenha algo a mais pra editar, GM dos outros sгo assim.
Mais seguindo a lуgica do tуpico, Tente usar /* */ nos Defines, e trocar os 'SetPlayerCheckpoint' de Define para as coordenadas desejadas..
Como assim ? pode dar um exemplo se faz favor ?
Reply
#6

Como Mudar Coordenada ? Que Tal Mudar
pawn Код:
#define Checkpointlr1 1274.3405,346.9445,19.0761
#define Checkpointlr2 1303.3195,316.4876,19.0746
#define Checkpointlr3 1348.4449,296.5092,19.0719
#define Checkpointlr4 1346.5294,260.7894,19.0745
#define Checkpointlr5 1324.5778,236.6557,19.0748
#define Checkpointlr6 1273.6318,259.0706,19.0755
#define Checkpointlr7 1235.4199,257.7520,19.0744
#define Checkpointlr8 1225.0713,199.1514,19.0744
#define Checkpointlr9 1265.6025,189.7048,19.0745
#define Checkpointlr10 1286.2958,235.1936,19.0726
#define Checkpointlr11 1305.7303,279.6805,19.0746
#define Checkpointlr12 1339.6298,356.1128,19.0795
#define Checkpointlr13 1359.1035,399.9851,19.0749
#define Checkpointlr14 1353.5264892578,461.2546081543,20.045375823975
#define Checkpointlr15 1293.9302978516,490.85214233398,19.529043197632
#define Checkpointlr16 1246.0787353516,515.85369873047,19.358551025391
#define Checkpointlr17 1210.5114746094,533.74652099609,19.361978530884
#define Checkpointlr18 1178.4084472656,549.29119873047,19.728921890259
#define Checkpointlr19 1118.8670654297,577.35321044922,19.27458190918
#define Checkpointlr20 1069.6754150391,561.97485351563,19.602630615234
#define Checkpointlr21 1017.5905151367,475.59982299805,19.33766746521
#define Checkpointlr22 1071.5870361328,451.9841003418,22.217239379883
#define Checkpointlr23 1118.9097900391,417.7333984375,26.888515472412
#define Checkpointlr24 1210.5296630859,357.7561340332,18.943290710449
#define Checkpointlr25 1198.2523193359,292.38412475586,19.403242111206
#define Checkpointlr26 1290.1313476563,245.57012939453,19.255342483521
#define Checkpointlr27 1294.8762207031,325.81011962891,19.661846160889
#define Chackpointlr28 1287.1396484375,348.32522583008,19.725868225098
?
Reply
#7

Quote:
Originally Posted by Jonathan_Feitosa
Посмотреть сообщение
Como Mudar Coordenada ? Que Tal Mudar
pawn Код:
#define Checkpointlr1 1274.3405,346.9445,19.0761
#define Checkpointlr2 1303.3195,316.4876,19.0746
#define Checkpointlr3 1348.4449,296.5092,19.0719
#define Checkpointlr4 1346.5294,260.7894,19.0745
#define Checkpointlr5 1324.5778,236.6557,19.0748
#define Checkpointlr6 1273.6318,259.0706,19.0755
#define Checkpointlr7 1235.4199,257.7520,19.0744
#define Checkpointlr8 1225.0713,199.1514,19.0744
#define Checkpointlr9 1265.6025,189.7048,19.0745
#define Checkpointlr10 1286.2958,235.1936,19.0726
#define Checkpointlr11 1305.7303,279.6805,19.0746
#define Checkpointlr12 1339.6298,356.1128,19.0795
#define Checkpointlr13 1359.1035,399.9851,19.0749
#define Checkpointlr14 1353.5264892578,461.2546081543,20.045375823975
#define Checkpointlr15 1293.9302978516,490.85214233398,19.529043197632
#define Checkpointlr16 1246.0787353516,515.85369873047,19.358551025391
#define Checkpointlr17 1210.5114746094,533.74652099609,19.361978530884
#define Checkpointlr18 1178.4084472656,549.29119873047,19.728921890259
#define Checkpointlr19 1118.8670654297,577.35321044922,19.27458190918
#define Checkpointlr20 1069.6754150391,561.97485351563,19.602630615234
#define Checkpointlr21 1017.5905151367,475.59982299805,19.33766746521
#define Checkpointlr22 1071.5870361328,451.9841003418,22.217239379883
#define Checkpointlr23 1118.9097900391,417.7333984375,26.888515472412
#define Checkpointlr24 1210.5296630859,357.7561340332,18.943290710449
#define Checkpointlr25 1198.2523193359,292.38412475586,19.403242111206
#define Checkpointlr26 1290.1313476563,245.57012939453,19.255342483521
#define Checkpointlr27 1294.8762207031,325.81011962891,19.661846160889
#define Chackpointlr28 1287.1396484375,348.32522583008,19.725868225098
?

Sim eu jб mudei essas coordenadas, mas quando vou testar os checks nгo aparecem nessas coordenadas
Reply
#8

Exemplo:
pawn Код:
//comeзe retirando isso por exemplo...
/*#define Checkpointlr1 Coordenadas*/
e onde tem
pawn Код:
// e troque o nome da coordenada pela prуpria coordenada
SetPlayerCheckpoint(playerid,Cord X, Cord Y, Cord Z, 7.0);
Espero ter ajudado...
Reply
#9

Quote:
Originally Posted by Willian_Luigi
Посмотреть сообщение
Exemplo:
pawn Код:
//comeзe retirando isso por exemplo...
/*#define Checkpointlr1 Coordenadas*/
e onde tem
pawn Код:
// e troque o nome da coordenada pela prуpria coordenada
SetPlayerCheckpoint(playerid,Cord X, Cord Y, Cord Z, 7.0);
Espero ter ajudado...
Vou tentar, obrigado
Reply
#10

Jб fiz o que o Willian_Luigi disse mas o problema continua ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)