Dropping pistol while carrying shield
Hi,
Say a CT has both a USP and a shield. Now, I'd like my plugin to make that CT drop the USP without dropping the shield. This is problematic... engclient_cmd(id, "drop", "weapon_usp") will not work : the shield is dropped, but not the usp. How can I do that? Cordially, Misery |
Re: Dropping pistol while carrying shield
First thing i have in mind is that you can hook "drop" command and check if player have shield. Then you can take the pistol from the player .
|
Re: Dropping pistol while carrying shield
Sorry, I don't get you?
If I "drop weapon_usp" while shield is "true", the shield will be dropped first. If I do another "drop weapon_usp", this time the USP will be dropped. But... the problem is that I don't want to make the player drop the shield, only the USP. |
Re: Dropping pistol while carrying shield
try locking the weapon to knife while the shield is true. This way you don't need to force weapon dropping (which you'll just pick up anyway) and piss off clients.
|
Re: Dropping pistol while carrying shield
Not really the best way... don't really like to get around what I initially wanted with a hackfix.
There's really absolutely no way? How can this even be possible... after all, that should be a simple operation. Any low level/Orpheu based solution? Hamsandwich? |
Re: Dropping pistol while carrying shield
It's not the way you wanted, but it can help you.
https://forums.alliedmods.net/showthread.php?t=131579 |
Re: Dropping pistol while carrying shield
Try this :
PHP Code:
|
| All times are GMT -4. The time now is 08:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.