[FilterScript] [FS] Anti Aircraft Missle Launcher
#1

[FS] Anti Aircraft Missle Launcher
Ok, so you have somewhere in your server which you only want admins (or nobody) to go into, but people keep using planes or helecopters to fly in. What can you do? You could just SetPlayerHealth to kill them instantly, but where is the fun in that? Wouldnt it be more fun to see their plane / helecopter blown out of the sky?

This missle launcher script allows you to easily create anti aircraft missle launchers anywhere on the map. It only takes one line to add each one.
To create an Anti Aircraft Missle Launcher just add the following line to the OnFilterScriptInit line of the filterscript:

pawn Код:
Version V1: CreateMissleLauncher ( Float: X , Float: Y , Float: Z );
Version V2: CreateRocketLauncher ( Float: X , Float: Y , Float: Z );
This will return the missle id.

To change who the missles launch at, edit the LaunchAt variable at the top of the script to one of the following:

pawn Код:
new ROCKET_SHOOT_ADMINS = true;    // Launches at all players within a ceartain distance.
new ROCKET_SHOOT_ADMINS = false;    // Launches at all non-admins within a ceartain distance.
No more problems with people flying into your private areas!

__________________________________________________ ______________________
OLD VERSION 1.1 : Source: http://pastebin.com/f496231d9
NEW VERSION 2.0 : Source: http://pastebin.com/f50d1b64a
__________________________________________________ ______________________


Please feel free to post comments, critisism and sugestions for next version.

Kind regards,

WrathOfGenesis ( FUDDS )


__________________________________________________ __________________________________________________ ________


UPDATE 2.0:


This is a completely new version of the script. The missles will no longer follow the players until they are killed, the rockets will now launch at and around the player when they fly nearby. This gives the player a chance to survive and dodge the explosions while still stopping them from landing. They can still be hit by the rockets and taken out but it makes it more fun because you can now try and using all of your flying skills to dodge them.

The way this new scripts work is hard to explain so i would recomend downloading it and testing it out to see what it does.

ADMIN COMMANDS:

Код:
/AAProtect [id]   // Stops the AA Shooting a ceartain player
/AAUnprotect [id]   // Allows the AA shoot that player again

[size=30pt]FAQ


Q. How do i make a missle launcher launch multiple rockets?
A. Put more launchers in that position. If you want a position to fire 3 rockets, put the CreateMissleLauncher or CreateRocketLauncher line 3 times with the same coords.



Credits

****** - GetXYInfrontOfPlayer



- WrathOfGenesis (FUDDS)
Reply
#2

cool .. i gonna test it now
Reply
#3

Nice, gonna try it
Reply
#4

Update - Text Draw Missle Warnings added. See first post for picture.
Reply
#5

Nice FUDDS!
Reply
#6

Cheers karlip
Reply
#7

gg
Reply
#8

the textdraw doesnt hide in my server Missle detected it freezes

Nice SCRIPT :P
Reply
#9

That's very good work there man.
Reply
#10

Nice FS
Reply
#11

can you make it but wiouth shooting admins and cops?

sry 4 bad english im spanish
Reply
#12

@__________@

Good one i will use this [and modify somethings to be good to carrers(RPG) PS: I will not modify the credits ]
Reply
#13

Very nice
and a very nice Idea =)
Reply
#14

Looks Good
Reply
#15

damn nice dude!
Really nice
Reply
#16

pawn Код:
for ( new playerid = 0; playerid < MAX_PLAYERS; playerid ++ )
    {
      new Float: TEXTX = 230 , Float: TEXTY = 350;
      RocketWarning = TextDrawCreate ( TEXTX , TEXTY , "~r~WARNING~w~: Heat Seeking Missle ~r~Detected" );
      TextDrawLetterSize ( RocketWarning , 0.55 , 2 );
      TextDrawFont ( RocketWarning , 3 );
      TextDrawSetOutline ( RocketWarning , 1 );
    }
Why to do the same thing 200 times?
Reply
#17

sweet im going to add this to my dm arena
Reply
#18

Awesome!!
Reply
#19

Ok, this look nice. But when i do so it dont shoot at admins, so how it knows its a non-admin??
Reply
#20

good
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)