one more question - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: one more question (
/showthread.php?tid=188879)
one more question -
AlexXx95 - 09.11.2010
what script i need to make a car dissapear after a player uses it
tanks
Re: one more question -
juuleman - 09.11.2010
Just set a very short Respawn Delay on that vehicle.
https://sampwiki.blast.hk/wiki/CreateVehicle
https://sampwiki.blast.hk/wiki/AddStaticVehicleEx
Re: one more question -
Kwarde - 09.11.2010
Juuleman, he meant (I think) that the vehicle just respawns/removes after exitting it;
@AklexXx95:
Code 1: The vehicle will respawn after exitting it
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
SetVehicleToRespawn(vehicleid);
return 1;
}
Code 2: This will remove the vehicle, it won't be back:
pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
DestroyVehicle(vehicleid);
return 1;
}