12.12.2010, 22:12
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;
}