SA-MP Forums Archive
[FilterScript] Weapons on body - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Weapons on body (/showthread.php?tid=618148)

Pages: 1 2 3


Weapons on body - GoldenLion - 01.10.2016

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


Re: Weapons on body - iKevin - 01.10.2016

Dope boyy


Re: Weapons on body - Pedro1995 - 01.10.2016

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.



Re: Weapons on body - GoldenLion - 01.10.2016

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?


Re: Weapons on body - OKStyle - 02.10.2016

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


Re: Weapons on body - Cookland - 02.10.2016

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.


Re: Weapons on body - GoldenLion - 02.10.2016

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.


Re: Weapons on body - Krakuski - 02.10.2016

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


Re: Weapons on body - GoldenLion - 02.10.2016

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.


Re: Weapons on body - GoldenLion - 04.10.2016

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


Re: Weapons on body - PT - 04.10.2016

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


Re: Weapons on body - GoldenLion - 04.10.2016

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.


Re: Weapons on body - PT - 04.10.2016

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


Re: Weapons on body - GoldenLion - 04.10.2016

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.


Re: Weapons on body - nemanjasepa - 11.11.2016

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


Re: Weapons on body - Irish - 12.11.2016

Keep it up. Nice work


Re: Weapons on body - GoldenLion - 12.11.2016

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.


Re: Weapons on body - GoldenLion - 21.12.2016

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


Re: Weapons on body - iLearner - 21.12.2016

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

Work on da bug sir.


Re: Weapons on body - GoldenLion - 21.12.2016

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.