Block Attack2 in defined weapons.
Code:
I want to block every weapon zoom (or other attack2 function) but scout. It still blocks every weapon, scout too. So what's wrong here? |
Re: Block Attack2 in defined weapons.
Look at this snipet : http://forums.alliedmods.net/showthr...19#post1238819
Register only weapons you want. You can filter weapon type using cs_get_weapon_id or pdata m_iId (43 extra offset 4). |
Re: Block Attack2 in defined weapons.
hook it with ham?
|
Re: Block Attack2 in defined weapons.
I can't really get the pdata functions. Gonna study on it.
|
Re: Block Attack2 in defined weapons.
I've tried, but something went wrong.
I think I'm too stupid for this. Code:
|
Re: Block Attack2 in defined weapons.
Adding 1 to I in the for function, at least what I think, wont change the weapon. Also it's public plugin_init not public init :/
Oh, and post the error log? |
Re: Block Attack2 in defined weapons.
Quote:
Quote:
|
Re: Block Attack2 in defined weapons.
Should work
Code:
|
Re: Block Attack2 in defined weapons.
And what if I would like to set blocking by a value attached to id.
For example: I define new mama[33] and then if (mama[id]) then user's attack2 is blocked. Is this possible by this way or I have to use other, more complicated function? |
Re: Block Attack2 in defined weapons.
edited above
|
| All times are GMT -4. The time now is 00:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.