[Include] [INC] Gun Holder
#1

Gun Holder
It's an include where you can put a weapon on a players back.
For example you can put a AK74 on a players back.
Test gamemode Included!

Screens



Functions
pawn Code:
native SetHolderWeapon(gh_playerid, gh_weapon);
native GetHolderWeapon(gh_playerid);
native RemoveHolderWeapon(gh_playerid);
Download


Include:





Test Gamemode:


CompiledSource







Bugs
Some weapons don't show right, maybe i will fix it.
Reply
#2

Someone asked me about this in Scripting Discussion the other day, was it you?
Reply
#3

Great script
Reply
#4

It was me Weirdosport

Great FS, gonna try it out with a katana right away xD
Reply
#5

Awesome,dude!
Reply
#6

Looks awesome.
Reply
#7

Nice, the AK47 could be used for terrorists :P.
Reply
#8

I always wanted to make something like this but with a parachute what supposed to be a backpack :P nice job
Reply
#9

The Katana came out pretty nice, although I won't be using this script my self, it has taught me about attaching objects, so I thank you.
Reply
#10

http://forum.sa-mp.com/index.php?top...2715#msg622715
I was trying to develop something of the sort. I just couldn't get it to where it would delete the weapon when you actually pulled out said weapon.




Oh lawd
Reply
#11

looks kinda weird =P

btw. good work
Reply
#12

When I Was Type "Holder" Notthing Hapens . Should I Change Model To Model Id?
Reply
#13

Quote:
Originally Posted by HACKHERS
When I Was Type "Holder" Notthing Hapens . Should I Change Model To Model Id?
Did you typed /holder?, it's in the test gamemode. Not in the include

Quote:
Originally Posted by Weirdosport
Someone asked me about this in Scripting Discussion the other day, was it you?
No, i wasn't. I asked something about the OnPlayerText, maybe you know me from that.
Reply
#14

Quote:
Originally Posted by .:NoZer0:.
Quote:
Originally Posted by HACKHERS
When I Was Type "Holder" Notthing Hapens . Should I Change Model To Model Id?
Did you typed /holder?, it's in the test gamemode. Not in the include

Quote:
Originally Posted by Weirdosport
Someone asked me about this in Scripting Discussion the other day, was it you?
No, i wasn't. I asked something about the OnPlayerText, maybe you know me from that.
I Now That I'm Tried On Test GameMode
Reply
#15

I hope you keep working on this. I'm trying to get it to work but no luck. I type /holder either as a FS or in my GM and nothing happens.

I have my .inc in the right place and the .amx in the right place.
Reply
#16

Thats genious!
Reply
#17

Good job!
Reply
#18

it's cool for RP servers
Reply
#19

not bad... good for rp
Reply
#20

So basically the object is following you? Is it smooth when you move? I think it may cause lagg if many players does /holder ?

Spatman
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)