17.04.2008, 10:37
[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: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.
pawn Код:
Version V1: CreateMissleLauncher ( Float: X , Float: Y , Float: Z );
Version V2: CreateRocketLauncher ( Float: X , Float: Y , Float: Z );
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.
__________________________________________________ ______________________
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)