[ Solved ] Ham_CS_Item_CanDrop question
Hi :)
subj: I have a question about Ham_CS_Item_CanDrop. Can it force a player to drop a current item (weapon)? Example: player has m4a1 (active), and i want him to drop it. And if not so hard, can you show me an example of usage it. I tried ExecuteHam and ExecuteHamB, but it doesn't work, because i don't know how to use it. I read ham_const, but didn't understand well. Thanks. |
Re: Ham_CS_Item_CanDrop question
no, it can't.
cs use Code:
void CBasePlayer::DropPlayerItem ( char *pszItemName )you can use engclient_cmd(id, "drop") |
Re: Ham_CS_Item_CanDrop question
Quote:
One more question: Can i force a player to drop knife or grenade? - i tried engclient_cmd in this case, but it didn't help me. Is there any another way to do it? |
Re: Ham_CS_Item_CanDrop question
there is a tut about strip user's weapon but not drop. you have to simulate the drop effect yourself
|
Re: Ham_CS_Item_CanDrop question
Quote:
Solved. |
Re: [ Solved ] Ham_CS_Item_CanDrop question
You could use engclient_cmd with nades but then you would have to hook Ham_CS_Item_CanDrop, return true and supercede.
See http://forums.alliedmods.net/showpos...1&postcount=27 |
Re: [ Solved ] Ham_CS_Item_CanDrop question
Quote:
|
| All times are GMT -4. The time now is 09:00. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.