SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 01/01/2018, 02:07 AM   #1
Primes007
Big Clucker
 
Join Date: Feb 2017
Posts: 56
Reputation: 2
Lightbulb Easy Attach: Simplifying Player and Vehicle Attachments.

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.
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
__________________


Bringing TDM to a whole new level.
Have you got what it takes to win over this battle of masculinity?
***TDM
Comming Soon

Last edited by Primes007; 02/06/2018 at 03:09 PM. Reason: Updated.
Primes007 is offline   Reply With Quote
Old 01/01/2018, 05:30 AM   #2
FuNkYTheGreat
Huge Clucker
 
FuNkYTheGreat's Avatar
 
Join Date: Jun 2016
Location: Pakistan.
Posts: 286
Reputation: 122
Default Re: Easy Attach: Simplifying Player and Vehicle Attachments.

The pastebin link is bugged and the other Download link you've provided isn't allowed, It's prohibited here, You better provide a Mediafire , solidfire or other websites download link instead of shorten' one's, You can also be banned for that, So be fast, anyway the pic looks good !
FuNkYTheGreat is offline   Reply With Quote
Old 01/01/2018, 06:28 AM   #3
Logic_
High-roller
 
Logic_'s Avatar
 
Join Date: Jun 2015
Location: 666
Posts: 1,491
Reputation: 268
Default Re: Easy Attach: Simplifying Player and Vehicle Attachments.

Quote:
Originally Posted by Primes007 View Post
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
Money earning short links are not allowed to be used on these forums, as you're new you should refer to the forums rules before you make a release so you can avoid getting a infraction. And one more thing, put your time into reading some good optimization tutorials and try to make use of them.

Download link:
Code:
https://drive.g oogle.com/file/d/103H94nr_LT5ExEVjMwOcVB2goWtHGHNU/view
__________________
Premium quality and reasonable pricing game Server hosting
Logic_ is offline   Reply With Quote
Old 01/01/2018, 07:16 AM   #4
Primes007
Big Clucker
 
Join Date: Feb 2017
Posts: 56
Reputation: 2
Default Re: Easy Attach: Simplifying Player and Vehicle Attachments.

Quote:
Originally Posted by FuNkYTheGreat View Post
The pastebin link is bugged and the other Download link you've provided isn't allowed, It's prohibited here, You better provide a Mediafire , solidfire or other websites download link instead of shorten' one's, You can also be banned for that, So be fast, anyway the pic looks good !
Quote:
Originally Posted by Logic_ View Post
Money earning short links are not allowed to be used on these forums, as you're new you should refer to the forums rules before you make a release so you can avoid getting a infraction. And one more thing, put your time into reading some good optimization tutorials and try to make use of them.
Thank you for that information both. The links have been fixed. Don't know why the pastebin link gets hashed after a while :/
__________________


Bringing TDM to a whole new level.
Have you got what it takes to win over this battle of masculinity?
***TDM
Comming Soon
Primes007 is offline   Reply With Quote
Old 01/01/2018, 08:56 AM   #5
rfr
Banned
 
Join Date: Nov 2017
Posts: 278
Reputation: 43
Default Re: Easy Attach: Simplifying Player and Vehicle Attachments.

Thank you for fixing the links and great release
rfr is offline   Reply With Quote
Old 01/01/2018, 10:35 AM   #6
Freaksken
Gangsta
 
Freaksken's Avatar
 
Join Date: Mar 2009
Location: Belgium
Posts: 619
Reputation: 287
Default Re: Easy Attach: Simplifying Player and Vehicle Attachments.

I don't think you're allowed to create a ready to go package with includes and plugins. Only include your own code in the download.

Besides that, you don't use Whirpool anywhere, so why is it a requirement?
__________________
Always keep in mind that a lot of people are active on this forum in their spare time.
They are sacrificing time they could easily spend on things they would rather do, to help you instead.


[Include] FCNPC A.I. - [Tutorial] Speedometer - [WIP] Single-player-like co-op mission - [Other] List of all my work
Freaksken is offline   Reply With Quote
Old 01/01/2018, 03:19 PM   #7
Primes007
Big Clucker
 
Join Date: Feb 2017
Posts: 56
Reputation: 2
Default Re: Easy Attach: Simplifying Player and Vehicle Attachments.

Quote:
Originally Posted by Freaksken View Post
I don't think you're allowed to create a ready to go package with includes and plugins. Only include your own code in the download
I read the Rules and it was said that one can upload the script and supporting files. Hence, I thought it is fine.
About Whirlpool, The script didn't run for some reason without it. Hence, I put it together. I'll look into it again.
__________________


Bringing TDM to a whole new level.
Have you got what it takes to win over this battle of masculinity?
***TDM
Comming Soon
Primes007 is offline   Reply With Quote
Old 01/01/2018, 04:07 PM   #8
rfr
Banned
 
Join Date: Nov 2017
Posts: 278
Reputation: 43
Default Re: Easy Attach: Simplifying Player and Vehicle Attachments.

Quote:
Originally Posted by Freaksken View Post
I don't think you're allowed to create a ready to go package with includes and plugins. Only include your own code in the download.

Besides that, you don't use Whirpool anywhere, so why is it a requirement?
you're not allowed to upload the samp server executable for what ever
rfr is offline   Reply With Quote
Old 02/06/2018, 03:10 PM   #9
Primes007
Big Clucker
 
Join Date: Feb 2017
Posts: 56
Reputation: 2
Default Re: Easy Attach: Simplifying Player and Vehicle Attachments.

Updated.
__________________


Bringing TDM to a whole new level.
Have you got what it takes to win over this battle of masculinity?
***TDM
Comming Soon
Primes007 is offline   Reply With Quote
Old 15/06/2018, 11:23 AM   #10
Sasino97
High-roller
 
Sasino97's Avatar
 
Join Date: Dec 2010
Location: Italy
Posts: 1,440
Reputation: 106
Flowers Licenses

What you can and cannot upload depends on the license of these programs.
I think you cannot upload samp-server, samp-npc etc because the license says:

Quote:
(e) The SA-MP software package may not be distributed, sold, rented or
leased, without written permission of the software author(s).
But most of the programs provided by the users of this forum are not covered by any license, or are covered by GNU and Creative Commons which permit that.
__________________
Desktop, Web, Mobile and Game Developer
  • SA-MP Game Modes and Filter Scripts (PAWN, SQL) (8 years experience)
  • Windows Applications (WPF, UWP)
  • Android Applications (Java Android SDK, Xamarin)
  • Web Design and Development (Wordpress, ASP.NET MVC, PHP, SQL)
  • Game Development (Unity3D, GameMaker Studio, LibGDX)
sasinosoft@gmail.com
I hope I don't get banned for using gmail, lol
Sasino97 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] Easy MySQL - Simplifying the usage of MySQL queries! Max_Andolini Includes 108 12/10/2018 07:55 AM
[Include] Easy MySQL 1.0 - Simplifying the usage of MySQL queries! ThePhenix Includes 93 08/01/2017 04:04 AM
Attach object to a player then a vehicle. fonia5 Scripting Help 2 23/02/2015 06:35 AM
[Include] APTV - Attach Player To Vehicle S0n1COwnsYou Includes 8 21/02/2013 09:22 AM
attach camera to player/vehicle HeLiOn_PrImE Scripting Help 4 12/09/2012 01:15 PM


All times are GMT. The time now is 02:51 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.