cars not deleting - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: cars not deleting (
/showthread.php?tid=649408)
cars not deleting -
PepsiCola23 - 08.02.2018
PHP Code:
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.");
}
this is what i have at player state change,why doesnt it delete the car after the players leaves the job car?
SOLVED: Used
PHP Code:
OnPlayerExitVehicle