SA-MP Forums Archive
Little 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)
+--- Thread: Little Help (/showthread.php?tid=300211)



Little Help - SpiderWalk - 29.11.2011

Hello everybody.How to make when player jump with car into water to die how to make it


Re: Little Help - English-Conceptz - 29.11.2011

if you mean destroy the car when you die ?

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
          new 
currentveh;
          
currentveh GetPlayerVehicleID(playerid);
          
DestroyVehicle(currentveh);
          return 
1;
    return 
1;

would work i think
note i havent tested it
also that will only work if your in the car when you die if your not and you jump out when falling into the water idk =/ have to wait for someone more experinced, of which there are many lol.


Re: Little Help - SpiderWalk - 29.11.2011

Not when car will jump into the water to player die


Re: Little Help - SpiderWalk - 29.11.2011

So do someone know??