AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Getting get_user_weapon for all weapons on spawn (https://forums.alliedmods.net/showthread.php?t=252856)

Cv3 12-10-2014 11:26

Getting get_user_weapon for all weapons on spawn
 
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 ?

zmd94 12-10-2014 11:36

Re: Getting get_user_weapon for all weapons on spawn
 
What do you mean by "I can't get all user weapons"?

Cv3 12-10-2014 11:41

Re: Getting get_user_weapon for all weapons on spawn
 
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 ..


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

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