Car help - 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: Car help (
/showthread.php?tid=138654)
Car help -
ScottCFR - 02.04.2010
I am making a dealership on my server. I want to make it so the car explodes after like 30 seconds of no one being in it. I tried AddStaticVehicleEx but it would only respawn.
Re: Car help -
Thrarod - 02.04.2010
CreateVehicle has that, check wiki
Re: Car help -
ScottCFR - 02.04.2010
I tried that too, It just respawns it.
Re: Car help -
ScottCFR - 02.04.2010
*Bump*
Re: Car help -
Bomber - 03.04.2010
AddStaticVehicle(456, X, Y, Z, Angle, Color1, Color2, Respawn);
Re: Car help -
adsy - 03.04.2010
note this is very rough, if you copy and paste you must fill it in with the correct wording and contexts
Код:
OnPlayerExitVehicle(){
cardie[vehicleid] = settimer("explode", 30000, 0);
}
OnPlayerEnterVehicle(){
killtimer(cardie[vehicleid]);
}
public explode(vehicleid){
SetVehicleHealth(cardie[vehicleid], 0.0);
}
also note that i have not tested this before and am only assuming it will explode