Raised This Month: $ Target: $400
 0% 

Getting get_user_weapon for all weapons on spawn


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cv3
Junior Member
Join Date: Sep 2014
Old 12-10-2014 , 11:26   Getting get_user_weapon for all weapons on spawn
Reply With Quote #1

Code:
		if (get_user_weapon(id, _, _) == CSW_SCOUT || get_user_weapon(id, _, _) == CSW_AWP )
			client_printcolor(id, "YOU GOT AWP || SCOUT");
I got few mods messing with each other. One of them gives you free AWP/SCOUT (bf2) but the other one (csdm alike) gives you a menu to choose weapon (which strips previous weps).

I figured out how to fix this but I can't get all user weapons, for some reason it works sometime and sometime it doesn't is there another way to do that except for running this on player spawn ?
Cv3 is offline
zmd94
Veteran Member
Join Date: Nov 2013
Location: Malaysia (9w2zow).
Old 12-10-2014 , 11:36   Re: Getting get_user_weapon for all weapons on spawn
Reply With Quote #2

What do you mean by "I can't get all user weapons"?
zmd94 is offline
Cv3
Junior Member
Join Date: Sep 2014
Old 12-10-2014 , 11:41   Re: Getting get_user_weapon for all weapons on spawn
Reply With Quote #3

I figured it out .. had to use user_has_weapon instead of get_user_weapon

Also the task for stripping was before my task for checking ..

Last edited by Cv3; 12-10-2014 at 11:42.
Cv3 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 15:27.


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