AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   check if player has a weapon (https://forums.alliedmods.net/showthread.php?t=339083)

QuickDroLLL 08-14-2022 18:03

check if player has a weapon
 
so can someone help me
how i can check if player holding a weapon without user_has_weapon bcz its check the specif weapon like user_has_weapon(id, CSW_C4) i just wan't it all like user_has_weapon(id, All) only knife it will not registed as user_has_weapon but if ak or m4 it will registed as user has weapon i hope you understand me.
sry for bad english

fysiks 08-14-2022 20:08

Re: check if player has a weapon
 
Use get_user_weapon() to know what they are holding.

QuickDroLLL 08-15-2022 10:45

Re: check if player has a weapon
 
Quote:

Originally Posted by fysiks (Post 2786463)
Use get_user_weapon() to know what they are holding.

ok thanks.


All times are GMT -4. The time now is 10:40.

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