13.07.2012, 13:50
Funny iv done that exact thing, I also did
Its just not working, It worked fine here until I added the check for if the car was a truck. I think this is where the problem lies. I just need to figure out how to check it properly...
Код:
if(newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER) { if(GetPlayerVehicleID(playerid) == JobInfo[JOB_TRUCKER][jCars][0] || GetPlayerVehicleID(playerid) == JobInfo[JOB_TRUCKER][jCars][1] || GetPlayerVehicleID(playerid) == JobInfo[JOB_TRUCKER][jCars][2] || GetPlayerVehicleID(playerid) == JobInfo[JOB_TRUCKER][jCars][3] || GetPlayerVehicleID(playerid) == JobInfo[JOB_TRUCKER][jCars][4]) { KillTimer(TruckTimer[playerid]); KillTimer(TrailerTimer[playerid]); GameTextForPlayer(playerid, "~r~Truck jacked!", 3500, 3); PlayerInfo[playerid][pDeliverTruck] = -1; TruckPackages[GetPlayerVehicleID(playerid)] = -1; PlayerInfo[playerid][pTPackages] = 0; } }