Raised This Month: $7 Target: $400
 1% 

give user multiple weapons (dynamically)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 11-05-2013 , 15:58   give user multiple weapons (dynamically)
Reply With Quote #1

the function get_user_weapons(id, weapons[32], &num) will return(?) the bitsum of all weaponbits a player has, I want to create an entity when the user dies with this bit, and when someone touches it, they will pick up all weapons that user had, what would be the easiest way of doing this? I have considered making a switch with the return and starting with the highest bitflag weapon and working my way down to add weapons, I am sure there is an easier way to do this though. any help with this would be greatly appreciated.
__________________
+|- KARMA Respectively

HLM is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 11-05-2013 , 16:08   Re: give user multiple weapons (dynamically)
Reply With Quote #2

Check this
__________________
alan_el_more is offline
HLM
Senior Member
Join Date: Apr 2008
Location: C:\WINDOWS\System32
Old 11-05-2013 , 17:11   Re: give user multiple weapons (dynamically)
Reply With Quote #3

Quote:
Originally Posted by alan_el_more View Post
Yes, thank you. Just what I needed.
__________________
+|- KARMA Respectively

HLM is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-05-2013 , 17:11   Re: give user multiple weapons (dynamically)
Reply With Quote #4

Create a weaponbox then, you should be able to store in it all player weapons and bpammo, storage is built with the same system.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
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

Forum Jump


All times are GMT -4. The time now is 01:15.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode