08.02.2018, 14:23
So i`m making a job system when you type /work it spawn a car,and if you exit the car it destroys.
the car is spawning ,but it isnt destroying.
here`s what i got at onplayerkeystatechange when he leaves the car.
the car is spawning ,but it isnt destroying.
here`s what i got at onplayerkeystatechange when he leaves the car.
PHP код:
if(PTruckerCP[playerid] >= 0)
{
DisablePlayerCheckpoint(playerid);
RemoveDestination(playerid);
DestroyVehicle(VJob[playerid]);
PTruckerCP[playerid] = -1;
VJob[playerid] = -1;
SendClientMessage(playerid, COLOR_WHITE, "{FFFFFF}Job: {FFFFFF}You canceled the job because you got out of your car.");
}