Car help
#1

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

CreateVehicle has that, check wiki
Reply
#3

I tried that too, It just respawns it.
Reply
#4

*Bump*
Reply
#5

AddStaticVehicle(456, X, Y, Z, Angle, Color1, Color2, Respawn);
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)