08.11.2014, 18:35
Here is the code.
And here is the problem. This part doesnt work
Rep for helping ! Really need this to work :/
Код:
enum jobInfo { jCars[9], jTrailers[9] } new JobInfo[MAX_JOBS][jobInfo];
Код:
JobInfo[JOB_TRUCKER][jCars][0] = CreateVehicle(498,-499.70001221,-472.20001221,25.60000038,179.99993896,1,3,0); // Truck 1 JobInfo[JOB_TRUCKER][jCars][1] = CreateVehicle(498,-494.70001221,-472.29998779,25.60000038,179.99450684,1,3,0); // Truck 2 JobInfo[JOB_TRUCKER][jCars][2] = CreateVehicle(498,-489.70001221,-472.39999390,25.60000038,179.99450684,1,3,0); // Truck 3 JobInfo[JOB_TRUCKER][jCars][3] = CreateVehicle(498,-484.79998779,-472.29998779,25.60000038,179.99450684,1,3,0); // Truck 4 JobInfo[JOB_TRUCKER][jCars][4] = CreateVehicle(498,-479.29998779,-472.70001221,25.60000038,179.99450684,1,3,0); // Truck 5 JobInfo[JOB_TRUCKER][jCars][5] = CreateVehicle(498,-474.50000000,-472.70001221,25.60000038,179.99450684,1,3,0); // Truck 6 JobInfo[JOB_TRUCKER][jCars][6] = CreateVehicle(498,-469.50000000,-472.29998779,25.60000038,179.99450684,1,3,0); // Truck 7 JobInfo[JOB_TRUCKER][jCars][7] = CreateVehicle(498,-504.20001221,-472.10000610,25.60000038,179.99450684,1,3,0); // Truck 8 JobInfo[JOB_TRUCKER][jCars][8] = CreateVehicle(498,-509.00000000,-472.10000610,25.60000038,179.99450684,1,3,0); // Truck 9
Код:
stock IsTruckerVehicle(vehicleid) { for(new i=0; i<10; i++) { if(vehicleid == JobInfo[JOB_TRUCKER][jCars][i]) return 1; } return 0; }
Код:
if(IsTruckerVehicle(vehicleid) && PlayerInfo[playerid][pJob] != JOB_TRUCKER) { new Float:pos[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 Truckers."); }