01.01.2018, 02:07
(
Last edited by Primes007; 14/12/2018 at 02:43 AM.
Reason: Disabled Direct Download Link.
)
Easy Attach
by Primes
Release date: 01/01/2018
Last Updated: 06/02/2018
Version: 1.2
I have been working a lot on attaching Objects onto Vehicles and Player lately for my server and find that getting the correct Offsets for attaching is one of the most difficult task that I find, and on a little research, found most of the others do too.by Primes
Release date: 01/01/2018
Last Updated: 06/02/2018
Version: 1.2
So, Here I am bringing out my first release as a savior for all those Coders having trouble in getting Offsets (no more worries about Offsets).
About:
With the help of this FilterScript, you can easily set the position of the object just by pressing two keys and export the project to get ready made code right at your fingertips. No more need to worry about complex floating point numbers.
Commands:
Note: You need to be logged in as RCON Admin so as the commands to work.
There are only two easy commands:
/ea => Start Easy Attaching
/v <model> => Spawn a vehicle of provided model id (This command was made just in case this FS is standalone and you need a vehicle to Attach objects to)
Installation Instructions:
1. Paste the two files in the filterscripts folder to the filterscripts folder in your server directory.
2. Paste the includes in pawno\include to your server folder's pawno\include, incase you might be missing any required include.
3. Paste sscanf.dll to your plugins folder if you are running on a Windows OS.
Else, Paste sscanf.so to your plugins folder in you are running on a Linux OS.
(Create the folder manually if it does not exist already)
4. Write down "EasyAttach" (without the quotes) to the filterscripts line in your server.cfg.
5. Write down "sscanf" (without the quotes) to the plugins line in your server.cfg if you are running on a Windows OS.
Else, Write down "sscanf.so" (without the quotes) to the plugins line in your server.cfg if you are running on a Linux OS.
(Add the line manually if it does not exist already)
You are good to go now.
FAQ:
Q. Its not working, what to do?
A. Try unloading all your FilterScripts and use it on a blank Game mode. This is because the dialog ids may clash with dialogs in other FilterScripts and may cause it to fail.
Q. Its still not working...
A. You must be logged in as a rcon administrator for the script to work.
Q. I don't see any file exported
A. WTF it was supposed to create a file in the scriptfiles folder
Application:
Heres one beast I made with the help of this script:
Requirements:
All files are present in the package.
Includes:
sscanf2 Thanks to Lord Y_Less
zcmd Thanks to Zeex
Plugins:
sscanf2 Thanks to Lord Y_Less
Download:
Download - Easy Attach 1.2
Pastebin - Easy Attach 1.2
P.S:
I am a newbie to scripting and this is also my very first release. So, do not expect a neat, highly optimized, bug free script. Instead of discouraging me please entrust me with some tips on how I can optimize or make my code more efficient or suggest me a new addition to this.
And yeah, Happy New Year y'all