01.12.2018, 12:47
I have a government vehicles and everyone can enter them
Whats worng here?:
else if(IsGovVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 2)
{
new Floatos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to the GOV.");
}
// Government Vehicles
FacInfo[2][fCars][0] = CreateVehicle(507,1454.8049,-1749.6432,13.4354,359.8442,0,0,1800); // Gov 1
FacInfo[2][fCars][1] = CreateVehicle(507,1507.4797,-1749.7860,13.4354,359.8442,0,0,1800); // Gov 2
FacInfo[2][fCars][2] = CreateVehicle(579,1253.69995117,-2042.50000000,59.70000076,0.00000000,0,0,1800); //Huntley
FacInfo[2][fCars][3] = CreateVehicle(409,1248.59997559,-2034.19995117,59.59999847,0.00000000,0,0,1800); //Stretch
FacInfo[2][fCars][4] = CreateVehicle(579,1244.19995117,-2042.40002441,59.70000076,0.00000000,0,0,1800); //Huntley
FacInfo[2][fCars][5] = CreateVehicle(579,1253.69995117,-2026.09997559,59.70000076,0.00000000,0,0,1800); //Huntley
FacInfo[2][fCars][6] = CreateVehicle(579,1243.80004883,-2025.09997559,59.70000076,0.00000000,0,0,1800); //Huntley
FacInfo[2][fCars][7] = CreateVehicle(579,1248.50000000,-2022.30004883,59.70000076,0.00000000,0,0,1800); //Huntley
FacInfo[2][fCars][8] = CreateVehicle(426,1253.50000000,-2035.19995117,59.40000153,0.00000000,0,0,1800); //Premier
FacInfo[2][fCars][9] = CreateVehicle(426,1244.00000000,-2034.69995117,59.59999847,0.00000000,0,0,1800); //Premier
FacInfo[2][fCars][10] = CreateVehicle(487,1116.80004883,-2052.39990234,74.50000000,0.00000000,0,0,1800); //Maverick
FacInfo[2][fCars][11] = CreateVehicle(487,1116.50000000,-2021.00000000,74.50000000,181.75000000,0,0,1800); //Maverick
FacInfo[2][fCars][12] = CreateVehicle(461,1250.80004883,-2042.50000000,59.40000153,0.00000000,0,0,1800); //PCJ-600
FacInfo[2][fCars][13] = CreateVehicle(461,1246.80004883,-2042.09997559,59.40000153,0.00000000,0,0,1800); //PCJ-600*/
return 1;
Whats worng here?:
else if(IsGovVehicle(vehicleid) && PlayerInfo[playerid][pFac] != 2)
{
new Floatos[3];
GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
SendClientMessage(playerid, COLOR_ORANGE, " You can't start the engine as it belongs to the GOV.");
}
// Government Vehicles
FacInfo[2][fCars][0] = CreateVehicle(507,1454.8049,-1749.6432,13.4354,359.8442,0,0,1800); // Gov 1
FacInfo[2][fCars][1] = CreateVehicle(507,1507.4797,-1749.7860,13.4354,359.8442,0,0,1800); // Gov 2
FacInfo[2][fCars][2] = CreateVehicle(579,1253.69995117,-2042.50000000,59.70000076,0.00000000,0,0,1800); //Huntley
FacInfo[2][fCars][3] = CreateVehicle(409,1248.59997559,-2034.19995117,59.59999847,0.00000000,0,0,1800); //Stretch
FacInfo[2][fCars][4] = CreateVehicle(579,1244.19995117,-2042.40002441,59.70000076,0.00000000,0,0,1800); //Huntley
FacInfo[2][fCars][5] = CreateVehicle(579,1253.69995117,-2026.09997559,59.70000076,0.00000000,0,0,1800); //Huntley
FacInfo[2][fCars][6] = CreateVehicle(579,1243.80004883,-2025.09997559,59.70000076,0.00000000,0,0,1800); //Huntley
FacInfo[2][fCars][7] = CreateVehicle(579,1248.50000000,-2022.30004883,59.70000076,0.00000000,0,0,1800); //Huntley
FacInfo[2][fCars][8] = CreateVehicle(426,1253.50000000,-2035.19995117,59.40000153,0.00000000,0,0,1800); //Premier
FacInfo[2][fCars][9] = CreateVehicle(426,1244.00000000,-2034.69995117,59.59999847,0.00000000,0,0,1800); //Premier
FacInfo[2][fCars][10] = CreateVehicle(487,1116.80004883,-2052.39990234,74.50000000,0.00000000,0,0,1800); //Maverick
FacInfo[2][fCars][11] = CreateVehicle(487,1116.50000000,-2021.00000000,74.50000000,181.75000000,0,0,1800); //Maverick
FacInfo[2][fCars][12] = CreateVehicle(461,1250.80004883,-2042.50000000,59.40000153,0.00000000,0,0,1800); //PCJ-600
FacInfo[2][fCars][13] = CreateVehicle(461,1246.80004883,-2042.09997559,59.40000153,0.00000000,0,0,1800); //PCJ-600*/
return 1;