[HELP] Disable checkpoints
#1

I'm trying to make that if a player exits a
pawn Код:
LicenseCar[lc1]
or
pawn Код:
LicenseCar[lc2]
it should remove all checkpoints and respawn the car.

Any idea how to do this?
Reply
#2

OnPlayerExitvehicle:

if(GetPlayerVehicleID(LicenseCar[lc1]))
{
DisablePlayerCheckPoint(playerid);
DestroyVehicle(LicenseCar[lc1]);
//paste your code here of creating a vehicle of licensecar
}

Same with other car.
Reply
#3

Sweet but is there any way to make them respawn and be teleported/despawned abck to their original location with this?
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)