Quantcast
Viewing all articles
Browse latest Browse all 18226

cars not deleting

PHP Code:

        if(PTruckerCP[playerid] >= 0
        { 
            
DisablePlayerCheckpoint(playerid); 
            
RemoveDestination(playerid); 
            
DestroyVehicle(VJob[playerid]); 
            
PTruckerCP[playerid] = -1
            
VJob[playerid] = -1
            
SendClientMessage(playeridCOLOR_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 


Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>