[HELP] Disable checkpoints - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Disable checkpoints (
/showthread.php?tid=303577)
[HELP] Disable checkpoints -
Fredden1993 - 14.12.2011
I'm trying to make that if a player exits a
or
it should remove all checkpoints and respawn the car.
Any idea how to do this?
Re: [HELP] Disable checkpoints -
wildcookie007 - 14.12.2011
OnPlayerExitvehicle:
if(GetPlayerVehicleID(LicenseCar[lc1]))
{
DisablePlayerCheckPoint(playerid);
DestroyVehicle(LicenseCar[lc1]);
//paste your code here of creating a vehicle of licensecar
}
Same with other car.
Re: [HELP] Disable checkpoints -
Fredden1993 - 14.12.2011
Sweet but is there any way to make them respawn and be teleported/despawned abck to their original location with this?
Re: [HELP] Disable checkpoints -
wildcookie007 - 14.12.2011
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.