get_user_weapons
I need this native but im not sure how it works, could some1 explain it a bit better to me
Functionwiki - get_user_weapons Example: PHP Code:
Do i need the make an enum list of all the CSW_ weapons it could return? |
Re: get_user_weapons
PHP Code:
|
Re: get_user_weapons
I need to do something if a player has a weapon in his inventory so as soon as a player has a gun (pistol or primary weapon + knife ),
how could i do that? |
Re: get_user_weapons
If a player has a weapon in his inventory, then what exactly do you want to do?
|
Re: get_user_weapons
Quote:
Spoiler
EDIT: To explain it a lil better: I need to use this function in the event: DeathMsg, its for an anti freekill system i'm working on. To check if a victim has a primary weapon, so if the victim only had a knife AND he was not a rebel then i want to ignore the rest of the code in event: DeathMsg. or in other words: If the victim was not a rebel but had a primary weapon when he died (even if he wasnt holding that primary weapon) then i want to ignore the rest of the code. This is how im using it now: PHP Code:
|
Re: get_user_weapons
PHP Code:
|
Re: get_user_weapons
ah yes very nice, thanks for your help man :up:
|
| All times are GMT -4. The time now is 07:46. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.