drop pistol while having shield [SOLVED! Post #9]
Hello,
I've searched for this and found nothing. I need to drop the pistol from a player having a shield. engclient_cmd(id, "drop", "weapon_usp") doesn't work, nethider "drop weapon_usp" in console, it works for the rest of weapons but for shield, drops the shield :/ Anyone know any other method ? ... besides removing the pistol from player's inventory and creating a fake dropped one ^^ |
Re: drop pistol while having shield
PHP Code:
|
Re: drop pistol while having shield
Yeah, you're a genious :roll: test that for me would ya :)
|
Re: drop pistol while having shield
Quote:
|
Re: drop pistol while having shield
You either don't know how to script or you're messing with me :}
1. "client_prethink()" doesn't exist, it's "client_PreThink()" 2. if that would actually BE the prethink function, it would do an infinite loop and crash 3. I said I wanted to DROP the pistol, not to remove it. 4. CSW_SHIELD does not exist, shield is detectable via cs_get_user_shield() Either way, it's no help. So, anyone know a way to DROP a pistol while having a shield ? :crab: |
Re: drop pistol while having shield
You could force the player to drop shield, remove the weaponbox for the shield, drop the pistol, then give the player a shield.
|
Re: drop pistol while having shield
Or you can simply execute strip_user_weapons and give them a shield, but its not recommended becouse of other user items loss.
|
Re: drop pistol while having shield
Quote:
|
Re: drop pistol while having shield
Quote:
PHP Code:
|
Re: drop pistol while having shield
Haha nvm
|
| All times are GMT -4. The time now is 07:14. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.