Block throw weapon
How can I use FM_SetModel forward to check if player threw an M4 and block it? (Keep the M4 in his hand)?
|
Re: Block throw weapon
Hook "drop" command and block it if player is holding M4.
Also, hook client buy and block it if player has an M4 and is buying a primary weapon. |
Re: Block throw weapon
You should also block "drop weapon_m4a1"
|
Thank you.
By the way, if I want to log everything that player types in console, weither its in chat or in console. Will register_clcmd("", "logAll") cover it up? Or is there any other special way? |
Re: Block throw weapon
You cannot do that.
|
Re: Block throw weapon
You can use client_command() forward for most commands, but you can't just get anything the player types.
|
Re: Block throw weapon
PHP Code:
|
Re: Block throw weapon
Quote:
|
Re: Block throw weapon
I don't think so because when you enable nades drop with this way you can still buy different nades types, but not sure at all, the easier is to test.
|
Re: Block throw weapon
Quote:
|
| All times are GMT -4. The time now is 06:09. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.