19.01.2008, 18:28
V1 adds a useable mounted minigun to your desired pos (check the source for more info)
V2 adds up to 5 mounted miniguns that you can enable and disable (again check the source)
You must add the objects your self, just put the cordinates at the defines in the source
Please do not remove the credits and add me in to your /credits commands plx!!!
Download
V1
source - http://pastebin.thegtaplanet.net/pastebin.php?show=240
V2
source - http://pastebin.thegtaplanet.net/pastebin.php?show=241 very bugged, too bust to fix, Dont download
I removed the compiled version because you need to save your own positions
enjoy
WeeDarr
Screens
before - http://files.uploadffs.com/bcf9abf1c..._sa-mp-071.png
/usegun - http://files.uploadffs.com/ed2d1391d..._sa-mp-072.png
fire! - http://files.uploadffs.com/867cac4e3..._sa-mp-073.png
walk away or /exitgun - http://files.uploadffs.com/334bfefbc..._sa-mp-074.png
How to configure
Hey due to some confusion i am adding this tutorial on how to place the guns
In the script you will see these lines
They are the only ones you need to change, i will now explain what they do, First off go in to your game and do save where you want the minigun to be.
#define GUN1 true
This says if you want the gun to be made, e.g if you only want one gun set gun2-gun5's defines to false.
#define X1,Y1,Z1 1962.9644,1358.7168,8.2578
This is the x,y,z cordinates from your /save ingame, set the Z cordinate to 1 unit lower to make the gun on the ground.
#define RX1,RY1,RZ1 0.0,0.0,359.1342
This is the rotation cordinates for the minigun, for the facing angle of the gun its the last set of cordinates.
The same goes for all them of them up to gun5
#define DISTANCE 3.0
This is the maximum distance they can be from the gun, also it sets the area they can have the minigun in.
#define AMMO 500
This is simply just how much ammo is in the gun.
any more questions, ask!
WeeDarr
V2 adds up to 5 mounted miniguns that you can enable and disable (again check the source)
You must add the objects your self, just put the cordinates at the defines in the source
Please do not remove the credits and add me in to your /credits commands plx!!!
Код:
/* This script was made by WeeDarr thanks to the ideas of this thread: http://forum.sa-mp.com/index.php?topic=37951.0 You are not permitted to change anything other that the four defines below if you use this you must also add me in to your credits list. If you are found taking credit for it I will simply delete the files so nobody can download, so you ruin it for others... Anyway i hope you have fun with the script, if you find any errors or bugs please report them at the official topic on the sa-mp forums. WeeDarr & thanks to denver? for the PlayerToPoint function. Last note, if you have teleport commands and you do not what the person to get the minigun out of the minigun zone please remember to remove the minigun from the player, i may add this in future versions, wait and see. I may also add support for multiple miniguns */
V1
source - http://pastebin.thegtaplanet.net/pastebin.php?show=240
V2
source - http://pastebin.thegtaplanet.net/pastebin.php?show=241 very bugged, too bust to fix, Dont download
I removed the compiled version because you need to save your own positions
enjoy
WeeDarr
Screens
before - http://files.uploadffs.com/bcf9abf1c..._sa-mp-071.png
/usegun - http://files.uploadffs.com/ed2d1391d..._sa-mp-072.png
fire! - http://files.uploadffs.com/867cac4e3..._sa-mp-073.png
walk away or /exitgun - http://files.uploadffs.com/334bfefbc..._sa-mp-074.png
How to configure
Hey due to some confusion i am adding this tutorial on how to place the guns
In the script you will see these lines
Код:
// Minigun 1 #define GUN1 true #define X1,Y1,Z1 1962.9644,1358.7168,8.2578 #define RX1,RY1,RZ1 0.0,0.0,359.1342 // Minigun 2 #define GUN2 true #define X2,Y2,Z2 1962.8313,1330.7249,8.2501 #define RX2,RY2,RZ2 0.0,0.0,183.3760 // Minigun 3 #define GUN3 false #define X3,Y3,Z3 0.0,0.0,0.0 #define RX3,RY3,RZ3 0.0,0.0,0.0 // Minigun 4 #define GUN4 false #define X4,Y4,Z4 0.0,0.0,0.0 #define RX4,RY4,RZ4 0.0,0.0,0.0 // Minigun 5 #define GUN5 false #define X5,Y5,Z5 0.0,0.0,0.0 #define RX5,RY5,RZ5 0.0,0.0,0.0 // Other defines #define DISTANCE 3.0 // the distance for playertopoint #define AMMO 500 // the amount of ammo for the minigun
#define GUN1 true
This says if you want the gun to be made, e.g if you only want one gun set gun2-gun5's defines to false.
#define X1,Y1,Z1 1962.9644,1358.7168,8.2578
This is the x,y,z cordinates from your /save ingame, set the Z cordinate to 1 unit lower to make the gun on the ground.
#define RX1,RY1,RZ1 0.0,0.0,359.1342
This is the rotation cordinates for the minigun, for the facing angle of the gun its the last set of cordinates.
The same goes for all them of them up to gun5
#define DISTANCE 3.0
This is the maximum distance they can be from the gun, also it sets the area they can have the minigun in.
#define AMMO 500
This is simply just how much ammo is in the gun.
any more questions, ask!
WeeDarr