[FilterScript] Weapons on body
#1

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

Also someone asked for a dini version so here it is:
https://pastebin.com/rFdXzXxD (requires sscanf2 and a dini include, I suggest dini2 by Gammix which I've also included in the filterscript)
Don't forget to create a folder named Weapon Settings in your scriptfiles folder if you are going to use this.

Credits

SA-MP team for SA-MP
BlueG & Pain123 & maddinat0r for MySQL
Reply
#2

Dope boyy
Reply
#3

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 © 1997-2006, ITB CompuPhase


3 Errors.
Reply
#4

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 © 1997-2006, ITB CompuPhase


3 Errors.
Eh, what is this?
Reply
#5

https://sampforum.blast.hk/showthread.php?tid=205666
Reply
#6

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.
Reply
#7

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.
Reply
#8

Awesome! Exactly what I've been looking for. Are you able to make the weapons save to a file?
Reply
#9

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.
Reply
#10

Updated the filterscript, added another version of it which will save the weapon information.
Reply
#11

I advise you use GitHub for someone if want helps you be easier
Reply
#12

Quote:
Originally Posted by PT
View Post
I advise you use GitHub for someone if want helps you be easier
Uh, what does GitHub do? I always wondered... Like... Why not just pastebin? A filterscript is not something big.
Reply
#13

Quote:
Originally Posted by GoldenLion
View Post
Uh, what does GitHub do? I always wondered... Like... Why not just pastebin? A filterscript is not something big.
Its easier for other members help you improve this script
Reply
#14

Quote:
Originally Posted by PT
View Post
Its easier for other members help you improve this script
I don't want anyone to improve it.
Reply
#15

I have a problem... When I edit weapon and when I take weapon, AttachedObject still stays on me, how to solve that ? And when I try /weapon adjustpos again it says you are already editing weapon...
Reply
#16

Keep it up. Nice work
Reply
#17

Quote:
Originally Posted by nemanjasepa
View Post
I have a problem... When I edit weapon and when I take weapon, AttachedObject still stays on me, how to solve that ? And when I try /weapon adjustpos again it says you are already editing weapon...
I'll have a look and optimize the code a bit.

Quote:
Originally Posted by Irish
View Post
Keep it up. Nice work
Thank you.
Reply
#18

Updated the filterscript - optimized the code a bit, replaced y_ini with dini2 and ZCMD with Command Processor.
Reply
#19

You can't/shouldn't release something that has bugs... Shows you're impatience.

Work on da bug sir.
Reply
#20

I know, but I can't figure out how to fix it and I wanted the non-saving version to get finished today. The old version had the same bug and I'm still trying to fix it. But OK I removed it.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)