10.03.2012, 22:08
um exemplo.
Defina assim todos os veiculos e nao tera mais problemas
espero que saiba pelo menos o basico para entender, pois nao estou para explicar --'
Defina assim todos os veiculos e nao tera mais problemas
pawn Код:
new lspdcar1,lspdcar2,lspdcar3,lspdcar4,lspdcar5,lspdcar6,lspdcar7,lspdcar8,lspdcar9,lspdcar10;
lspdcar1 = AddStaticVehicleEx(596,1574.4741,-1711.3000,5.6120,0.00,-1,-1,-1);//*CopCruiser* 128
lspdcar2 = AddStaticVehicleEx(596,1558.8666,-1711.3000,5.6120,0.00,-1,-1,-1);//*CopCruiser* 129
lspdcar3 = AddStaticVehicleEx(596,1601.308000,-1621.916000,13.056540,90.0, -1,-1,-1);//*CopCruiser* 130
lspdcar4 = AddStaticVehicleEx(596,1535.8275,-1678.0283,13.1680,360.00,-1,-1,-1);//*CopCruiser* 131
lspdcar5 = AddStaticVehicleEx(596,1570.4180,-1711.3000,5.6120,0.00,-1,-1,-1);//*CopCruiser* 132
lspdcar6 = AddStaticVehicleEx(596,636.0500,-555.0000,15.97,180.00,0,1,-1);//*CopCruiser* 133
lspdcar7 = AddStaticVehicleEx(596,636.0500,-562.0000,15.97,180.00,0,1,-1);//*CopCruiser* 134
lspdcar8 = AddStaticVehicleEx(596,1535.8459,-1668.7560,13.2653,360.00,-1, -1, -1);//*CopCruiser* 135
lspdcar9 = CreateLampCar(426,1528.0300,-1688.0000,5.6120,270.00,0,0);//*LSPD Civil Police Car * 136
lspdcar10 = CreateLampCar(426,1528.0300,-1683.8829,5.6120,270.00,0,0);//*LSPD Civil Police Car * 137
public IsALSPDCar(carid)
{
if(carid == lspdcar1 || carid == lspdcar2 || carid == lspdcar3 ||carid == lspdcar4 ||carid == lspdcar5 ||carid == lspdcar6 ||carid == lspdcar7 ||carid == lspdcar8 ||carid == lspdcar9 ||carid == lspdcar10)
{
return 1;
}
if(carid == lspdbike1 || carid == lspdbike2 || carid == lspdbike3 ||carid == lspdbike4 ||carid == lspdmav1 ||carid == lspdmav2 ||carid == lspdmav3 ||carid == lspdenf1 || carid == lspdenf2 || carid == lspdrang1 || carid == lspdrang2)
{
return 1;
}
return 0;