SA-MP Forums

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

Reply
 
Thread Tools Display Modes
Old 01/10/2016, 09:33 PM   #1
GoldenLion
Gangsta
 
GoldenLion's Avatar
 
Join Date: Sep 2014
Location: Estonia
Posts: 963
Reputation: 129
Default Weapons on body

Weapons on body system
by GoldenLion


I've seen many filterscripts released here that create objects of your weapons on your body when they are not in use, but they didn't have any options to adjust the positions or hide them. So I decided to create a filterscript like this where you can adjust the position and bone of your weapon or hide small weapons because I'm pretty sure many people want it.

There's only one command: /weapon [adjustpos/bone/hide]
Also don't forget to change MAX_PLAYERS in the filterscript.

Video

https://www.youtube.com/watch?v=LT_xL014Tmg

Download

https://pastebin.com/XhhFS8NF (without saving)
https://pastebin.com/CGz4vWrT (with saving, requires MySQL R40+)

MySQL table for the saving version - https://pastebin.com/EAgP0wtA

Credits

SA-MP team for SA-MP
BlueG & Pain123 & maddinat0r for MySQL

Last edited by GoldenLion; 18/08/2017 at 11:15 PM.
GoldenLion is offline   Reply With Quote
Old 01/10/2016, 09:40 PM   #2
iKevin
Gangsta
 
iKevin's Avatar
 
Join Date: Nov 2015
Location: In my throne
Posts: 597
Reputation: 71
Default Re: Weapons on body

Dope boyy
iKevin is offline   Reply With Quote
Old 01/10/2016, 10:01 PM   #3
Pedro1995
Banned
 
Join Date: Sep 2016
Location: Albaniah
Posts: 13
Reputation: 11
Default Re: Weapons on body

Nice but why

Code:
C:\Documents and Settings\ibra servis pc\Desktop\sgg\filescript\friendlist.pwn(1) : error 010: invalid function or declaration
C:\Documents and Settings\ibra servis pc\Desktop\sgg\filescript\friendlist.pwn(4) : error 010: invalid function or declaration
C:\Documents and Settings\ibra servis pc\Desktop\sgg\pawno\include\sscanf2.inc(227) : warning 202: number of arguments does not match definition
C:\Documents and Settings\ibra servis pc\Desktop\sgg\pawno\include\sscanf2.inc(240) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Pedro1995 is offline   Reply With Quote
Old 01/10/2016, 10:21 PM   #4
GoldenLion
Gangsta
 
GoldenLion's Avatar
 
Join Date: Sep 2014
Location: Estonia
Posts: 963
Reputation: 129
Default Re: Weapons on body

Quote:
Originally Posted by KevinExec View Post
Dope boyy
Thanks.


Quote:
Originally Posted by Pedro1995 View Post
Nice but why

Code:
C:\Documents and Settings\ibra servis pc\Desktop\sgg\filescript\friendlist.pwn(1) : error 010: invalid function or declaration
C:\Documents and Settings\ibra servis pc\Desktop\sgg\filescript\friendlist.pwn(4) : error 010: invalid function or declaration
C:\Documents and Settings\ibra servis pc\Desktop\sgg\pawno\include\sscanf2.inc(227) : warning 202: number of arguments does not match definition
C:\Documents and Settings\ibra servis pc\Desktop\sgg\pawno\include\sscanf2.inc(240) : error 025: function heading differs from prototype
Pawn compiler 3.2.3664	 	 	Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
Eh, what is this?
GoldenLion is offline   Reply With Quote
Old 02/10/2016, 07:12 AM   #5
OKStyle
High-roller
 
OKStyle's Avatar
 
Join Date: May 2008
Location: Russia
Posts: 3,007
Reputation: 112
Default Re: Weapons on body

http://forum.sa-mp.com/showthread.php?t=205666
__________________
O.K.Style™ Laboratory
Kalcor: "... it's makes the game look like it's not GTA. This mod is called San Andreas Multiplayer. It's not a custom game engine which you can script..."
OKStyle is offline   Reply With Quote
Old 02/10/2016, 08:40 AM   #6
Cookland
High-roller
 
Cookland's Avatar
 
Join Date: Mar 2014
Posts: 1,047
Reputation: 81
Default Re: Weapons on body

Not trying to be harsh or anything, but thousands of people have done this and there's waaaaaaay more better versions. As the dude above me stated already, Yezizhu's is somewhat the main one downloaded and used.

It's a good attempt and everything, but I'd rather stick to someones with more details. It's the little things that make it work.
__________________
Cookland is offline   Reply With Quote
Old 02/10/2016, 10:51 AM   #7
GoldenLion
Gangsta
 
GoldenLion's Avatar
 
Join Date: Sep 2014
Location: Estonia
Posts: 963
Reputation: 129
Default Re: Weapons on body

As I already said, none of these that were released here allow you to adjust the position or bone of the weapon or hide it. All they do is create an object on a certain position, that's why I decided to create something a little bit different for everyone.
GoldenLion is offline   Reply With Quote
Old 02/10/2016, 04:28 PM   #8
Krakuski
Huge Clucker
 
Krakuski's Avatar
 
Join Date: Jul 2012
Location: Japan
Posts: 213
Reputation: 18
Default Re: Weapons on body

Awesome! Exactly what I've been looking for. Are you able to make the weapons save to a file?
__________________
Krakuski is offline   Reply With Quote
Old 02/10/2016, 05:34 PM   #9
GoldenLion
Gangsta
 
GoldenLion's Avatar
 
Join Date: Sep 2014
Location: Estonia
Posts: 963
Reputation: 129
Default Re: Weapons on body

Quote:
Originally Posted by Krakuski View Post
Awesome! Exactly what I've been looking for. Are you able to make the weapons save to a file?
Thanks, I'll try to make it in the next update.
GoldenLion is offline   Reply With Quote
Old 04/10/2016, 01:53 PM   #10
GoldenLion
Gangsta
 
GoldenLion's Avatar
 
Join Date: Sep 2014
Location: Estonia
Posts: 963
Reputation: 129
Default Re: Weapons on body

Updated the filterscript, added another version of it which will save the weapon information.
GoldenLion 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
every body see PAF Scripting Help 0 07/02/2014 11:43 AM
[Help] Car Body Fix frozen.iyan Scripting Help 7 11/12/2012 09:12 AM
car body ??? speediekiller2 Help Archive 5 10/08/2010 10:25 PM
Need help with car body XxerykxX Help Archive 19 20/02/2010 10:17 PM


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


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