[Ajuda] Tirando carteira de motorista
#1

bom galera eu tava fazendo o percurso da carteira de motorista
e bom ele mostra o primeiro racechekpoint dps dele ja mostra o ultimo

pawn Код:
public OnPlayerEnterRaceCheckpoint(playerid)
{
   if(PlayerInfo[playerid][TesteCarro] == 1)
   {
      DisablePlayerRaceCheckpoint(playerid);
      SetPlayerRaceCheckpoint(playerid,0,845.0090,-1609.8877,13.1937,1011.2292,-1575.2266,13.1941,5.0);
      PlayerInfo[playerid][TesteCarro] = 2;
   }
   if(PlayerInfo[playerid][TesteCarro] == 2)
   {
      DisablePlayerRaceCheckpoint(playerid);
      SetPlayerRaceCheckpoint(playerid,0,1011.2292,-1575.2266,13.1941,1064.3568,-1393.9950,13.3173,5.0);
      PlayerInfo[playerid][TesteCarro] = 3;
   }
   if(PlayerInfo[playerid][TesteCarro] == 3)
   {
      DisablePlayerRaceCheckpoint(playerid);
      SetPlayerRaceCheckpoint(playerid,0,1064.3568,-1393.9950,13.3173,1060.3538,-1199.7816,18.8745,5.0);
      PlayerInfo[playerid][TesteCarro] = 4;
   }
   if(PlayerInfo[playerid][TesteCarro] == 4)
   {
      DisablePlayerRaceCheckpoint(playerid);
      SetPlayerRaceCheckpoint(playerid,0,1060.3538,-1199.7816,18.8745,1147.4344,-1149.0422,23.4672,5.0);
      PlayerInfo[playerid][TesteCarro] = 5;
   }
   if(PlayerInfo[playerid][TesteCarro] == 5)
   {
      DisablePlayerRaceCheckpoint(playerid);
      SetPlayerRaceCheckpoint(playerid,0,1147.4344,-1149.0422,23.4672,1165.7471,-1057.5490,30.0351,5.0);
      PlayerInfo[playerid][TesteCarro] = 6;
   }
   if(PlayerInfo[playerid][TesteCarro] == 6)
   {
      DisablePlayerRaceCheckpoint(playerid);
      SetPlayerRaceCheckpoint(playerid,0,1165.7471,-1057.5490,30.0351,1045.0807,-1037.4255,31.6191,5.0);
      PlayerInfo[playerid][TesteCarro] = 7;
   }
   if(PlayerInfo[playerid][TesteCarro] == 7)
   {
      DisablePlayerRaceCheckpoint(playerid);
      SetPlayerRaceCheckpoint(playerid,0,1045.0807,-1037.4255,31.6191,961.3348,-1107.9562,23.5148,5.0);
      PlayerInfo[playerid][TesteCarro] = 8;
   }
   if(PlayerInfo[playerid][TesteCarro] == 8)
   {
      DisablePlayerRaceCheckpoint(playerid);
      SetPlayerRaceCheckpoint(playerid,0,961.3348,-1107.9562,23.5148,858.7167,-1140.1401,23.4576,5.0);
      PlayerInfo[playerid][TesteCarro] = 9;
   }
   if(PlayerInfo[playerid][TesteCarro] == 9)
   {
      DisablePlayerRaceCheckpoint(playerid);
      SetPlayerRaceCheckpoint(playerid,0,858.7167,-1140.1401,23.4576,688.8624,-1150.5775,15.2573,5.0);
      PlayerInfo[playerid][TesteCarro] = 10;
   }
   if(PlayerInfo[playerid][TesteCarro] == 10)
   {
      DisablePlayerRaceCheckpoint(playerid);
      SetPlayerRaceCheckpoint(playerid,0,688.8624,-1150.5775,15.2573,630.0236,-1275.4841,16.3416,5.0);
      PlayerInfo[playerid][TesteCarro] = 11;
   }
   if(PlayerInfo[playerid][TesteCarro] == 11)
   {
      DisablePlayerRaceCheckpoint(playerid);
      SetPlayerRaceCheckpoint(playerid,0,630.0236,-1275.4841,16.3416,628.2220,-1464.7960,14.1375,5.0);
      PlayerInfo[playerid][TesteCarro] = 12;
   }
   if(PlayerInfo[playerid][TesteCarro] == 12)
   {
      DisablePlayerRaceCheckpoint(playerid);
      SetPlayerRaceCheckpoint(playerid,0,628.2220,-1464.7960,14.1375,629.5877,-1555.1891,15.0978,5.0);
      PlayerInfo[playerid][TesteCarro] = 13;
   }
   if(PlayerInfo[playerid][TesteCarro] == 13)
   {
      DisablePlayerRaceCheckpoint(playerid);
      SetPlayerRaceCheckpoint(playerid,0,629.5877,-1555.1891,15.0978,698.3464,-1582.1973,13.8558,5.0);
      PlayerInfo[playerid][TesteCarro] = 14;
   }
   if(PlayerInfo[playerid][TesteCarro] == 14)
   {
      DisablePlayerRaceCheckpoint(playerid);
      SetPlayerRaceCheckpoint(playerid,1,698.3464,-1582.1973,13.8558,698.3464,-1582.1973,13.8558,5.0);
      PlayerInfo[playerid][TesteCarro] = 15;
   }
   if(PlayerInfo[playerid][TesteCarro] == 15)
   {
      SendClientMessage(playerid,LARANJA,Vocк ja pode dirigir agora");
      PlayerInfo[playerid][CarteiraCarro] = 16;
      DisablePlayerRaceCheckpoint(playerid);
   }

}
agradeзo desde jб quem puder ajudar *-*
Reply
#2

coloque return 1; em todos esses checkpoints eu estava tendo o mesmo problema com um sistema que eu fiz esses tempos atras sу foi eu colocar return 1; que resolveu.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)