SA-MP Forums Archive
why doesn't this code work? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: why doesn't this code work? (/showthread.php?tid=202970)



why doesn't this code work? - Yourfatness - 25.12.2010

this code doesn't seem to do anything:
public OnVehicleDeath(vehicleid, killerid){
SetTimer("DestroyVehicle(vehicleid)",5000,false);
}

i've tried it with and without (vehicleid), yet it still does nothing. the car respawns and this code is useless.

using this code, i am able to get cars to disappear when their health hits 0, unfortuantely this also means that some cars disappear before they explode:
public OnVehicleDeath(vehicleid, killerid){
DestroyVehicle(vehicleid);
}

can anyone help me to make all (or most) cars explode when they are flipped over, but not respawn after?


Re: why doesn't this code work? - WillyP - 25.12.2010

Wrong section.


Re: why doesn't this code work? - Mean - 25.12.2010

Quote:
Originally Posted by [FU]Victious
Посмотреть сообщение
Wrong section.
Yes, post it in "Scripting Discussion"