uc_buttons help
how to check whether the user pressed drop weapon button <default g> via uc_buttons...
|
Re: uc_buttons help
There is not "uc_button" for that. You should just register the "drop" command as a client command.
register_clcmd("drop","HookDrop"); |
Re: uc_buttons help
so...
PHP Code:
|
Re: uc_buttons help
It is correct as long as you don't care if dropped weapon is the active weapon or another one including shield.
|
Re: uc_buttons help
thank you sir ConnorMcLeod and akcaliberg
|
Re: uc_buttons help
drop is not a logevent
Use: register_clcmd |
Re: uc_buttons help
and what to use if i want to detect user's weapon switch <default q>
|
Re: uc_buttons help
default q, or whatever the key, is bound to command "drop", you can hook that command as you do, but you may have to check if command has arguments that could make drop another weapon than the active one, or without arguments it could make drop player shield if player has one.
|
Re: uc_buttons help
Quote:
|
Re: uc_buttons help
Quote:
but suppose if user is holding CSW_M4A1, how can i avoid user to drop it |
| All times are GMT -4. The time now is 10:12. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.