SA-MP Forums Archive
[Help] Create an explosion in a particular area? - 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: [Help] Create an explosion in a particular area? (/showthread.php?tid=144338)



[Help] Create an explosion in a particular area? - BlackSkull - 26.04.2010

I have an arena of DM and do not want planes passing through there, if they pass is going to explode?


Re: [Help] Create an explosion in a particular area? - Miguel - 26.04.2010

Quote:
Originally Posted by Jaked
I have an arena of DM and do not want planes passing through there, if they pass is going to explode?
Are you asking us or do you want us to help you?

pawn Код:
new
  Float:x,
  Float:y,
  Float:z;

GetVehiclePos(GetPlayerVehicleID(playerid), x, y, z);
CreateExplosion(x, y, z, 7, 10.0);



Re: [Help] Create an explosion in a particular area? - BlackSkull - 26.04.2010

More Where I put the position of the area to be exploded? x,y,z ?


Re: [Help] Create an explosion in a particular area? - Torran - 26.04.2010

Leave his code as it is, You dont have to change any of it,
Leave the x, y, z as they are,
Also use GetVehicleModel to see if that players in a plane,

And run it through a timer