[PROBLEMA]Carros
#4

tipo to criando carro pra org as otura org entra no carro e da vc nao e da fab certo! mas a fab id 25 tu entra e sai tbm...
onplayerstatechange:
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
   new CARRO = GetPlayerVehicleID(playerid);
   if(CarroMSAMP(CARRO))
   {
      if(CarroMSAMP(CARRO))
      {
         if(IsAFAB(playerid)) { }
         else {
         RemovePlayerFromVehicle(playerid);
         SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo й da F.A.B!"); }
      }
   }
}
ongamemodeinit:
pawn Код:
//CARROS DA FAB====================================================
    CarroDoMundoSAMP[0] = AddStaticVehicleEx(598,-1186.4696,-167.7644,14.1484,132.4433,0,65,250000); // VIATURA 1
CarroDoMundoSAMP[1] = AddStaticVehicleEx(598,-1182.8829,-172.3793,14.1484,132.4433,0,65,250000); // viATURA2
CarroDoMundoSAMP[2] = AddStaticVehicleEx(598,-1179.5951,-176.6056,14.1484,132.4433,0,65,250000); //VIATURA3
CarroDoMundoSAMP[3] = AddStaticVehicleEx(598,-1176.2163,-180.9616,14.1484,132.4433,0,65,250000);//viatura 4
CarroDoMundoSAMP[4] = AddStaticVehicleEx(598,-1172.0638,-186.1908,14.1484,132.4433,0,65,250000);
CarroDoMundoSAMP[5] = AddStaticVehicleEx(599,-1168.1929,-191.8923,14.1484,132.4433,0,65,250000);
//FIM ========================== -----------------------------------------------------------------------
fin do gm:
pawn Код:
public CarroMSAMP(idcarro)
{
   if((598 >= CarroDoMundoSAMP[0]) && (599 <= CarroDoMundoSAMP[5]))
   {
      return 1;
   }
   return 0;
}
ajuda ai PF!!
Reply


Messages In This Thread
[PROBLEMA]Carros - by Xapita_Halls - 12.12.2010, 21:01
Re: [PROBLEMA]Carros - by [BEP]AcerPilot - 12.12.2010, 21:07
Re: [PROBLEMA]Carros - by jhony test - 12.12.2010, 21:08
AW: [PROBLEMA]Carros - by Xapita_Halls - 12.12.2010, 21:48
Re: [PROBLEMA]Carros - by KevinsL - 12.12.2010, 21:54
AW: [PROBLEMA]Carros - by Xapita_Halls - 12.12.2010, 21:57
Re: [PROBLEMA]Carros - by KevinsL - 12.12.2010, 22:12
Re: [PROBLEMA]Carros - by Diogo_braz - 12.12.2010, 23:00
Re: [PROBLEMA]Carros - by KevinsL - 12.12.2010, 23:04
Re: [PROBLEMA]Carros - by rjjj - 12.12.2010, 23:45

Forum Jump:


Users browsing this thread: 4 Guest(s)