[PROBLEMA]Carros
#7

toma ae rei do copy/paste

pawn Код:
forward CarroDAFAB(idcarro);
new CARROSDAFAB[6];

if(newstate == PLAYER_STATE_DRIVER)
{
    new CARRO = GetPlayerVehicleID(playerid);
    if(CarroDAFAB(CARRO))
    {
        if(IsAFAB(playerid)) { }
        else {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo й da F.A.B!"); }
    }
}



CARROSDAFAB[0] = AddStaticVehicleEx(598,-1186.4696,-167.7644,14.1484,132.4433,0,65,250000); // VIATURA 1
CARROSDAFAB[1] = AddStaticVehicleEx(598,-1182.8829,-172.3793,14.1484,132.4433,0,65,250000); // viATURA2
CARROSDAFAB[2] = AddStaticVehicleEx(598,-1179.5951,-176.6056,14.1484,132.4433,0,65,250000); //VIATURA3
CARROSDAFAB[3] = AddStaticVehicleEx(598,-1176.2163,-180.9616,14.1484,132.4433,0,65,250000);//viatura 4
CARROSDAFAB[4] = AddStaticVehicleEx(598,-1172.0638,-186.1908,14.1484,132.4433,0,65,250000);
CARROSDAFAB[5] = AddStaticVehicleEx(599,-1168.1929,-191.8923,14.1484,132.4433,0,65,250000);



public CarroDAFAB(idcarro)
{
   if((idcarro >= CARROSDAFAB[0]) && (idcarro <= CARROSDAFAB[5])) return 1;
   return 0;
}
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: 5 Guest(s)