AA gun?
#1

How can i make an aa gun? Ex. A minigun that shoota at all planes... etc. THANKZ. oh... but it can ONLY shoot one of the 2 teams in my server... anyway.... THANKZ.
Reply
#2

You want a Gun that shoot Airplances automatic?
Reply
#3

yes.
Reply
#4

In short:
1. Create a minigun object (like the one in singleplayer)
2. Create a timer for it (Interval ~300-500ms should do it)
3. Create the timer function. In that function create a player loop: Check if there are planes/vehicles/players in any range you like (e.g. with IsPlayerInRangeOfPoint). Also check the team of the player. If there is a matching player, decrease his health/his vehicles' health and stop the loop (break) so it will only damage one player at a time. If you like, you could also rotate the object, so it will point in the players' direction, but this will require at least a little bit of math knowledge.

Congratulations! Now you got your own auto-shooting gun!
Reply
#5

can you help me script it? i can get part of it... just not so much the last part...
Reply
#6

This what you're looking for? http://forum.sa-mp.com/showthread.ph...to+air+missile
Reply
#7

i will try that and tell u if its good..
Reply
#8

the link is bad so no.
Reply
#9

I think this is the 1.2 link for it. I searched on ****** (for pastebin), and i found one from August 26 (i guess version 1?), one from Agusut 28 (I guess version 1.1?) and this is from September 5th, (I guess 1.2 aka latest version)

http://pastebin.com/qc9Xqnvm
Reply
#10

whats a boolean? oh... nvm.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)