Posts: 77
Threads: 4
Joined: Dec 2011
Reputation:
0
OnPlayerExitvehicle:
if(GetPlayerVehicleID(LicenseCar[lc1]))
{
DisablePlayerCheckPoint(playerid);
DestroyVehicle(LicenseCar[lc1]);
//paste your code here of creating a vehicle of licensecar
}
Same with other car.
Posts: 141
Threads: 51
Joined: Aug 2010
Reputation:
0
Sweet but is there any way to make them respawn and be teleported/despawned abck to their original location with this?
Posts: 77
Threads: 4
Joined: Dec 2011
Reputation:
0
Yes, that's what it does, it destroys the vehicle and creates it again in the same place it spawns, just copy the coordinates how you spawn the car ongamemodeinit, but be sure to use CreateVehicle, not addstaticvehicle.