Raised This Month: $ Target: $400
 0% 

Block Attack2 in defined weapons.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Gadzislaw007
Senior Member
Join Date: Nov 2009
Old 07-25-2010 , 17:13   Re: Block Attack2 in defined weapons.
Reply With Quote #1

I've tried, but something went wrong.
I think I'm too stupid for this.

Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <hamsandwich>

// weapons offsets
#define m_weapon 4
#define m_player 41
#define m_id 43
#define m_Attack2 47


public init()
{
new szWeaponName[20]
	for(new i=CSW_P228; i<=CSW_P90; i++)
    {
	if( get_weaponname(i, szWeaponName, charsmax(szWeaponName)) )
        {
            RegisterHam(Ham_Item_Deploy, szWeaponName, "GG", true)
        }
    }

}

public GG(r_Weapon)
{
	new iId = get_pdata_int(r_Weapon, m_id, m_weapon)
	if(iId == CSW_AUG)
	{
		    set_pdata_float(r_Weapon, m_Attack2, 99999.0, m_weapon)
	}



}
What have I done wrong?
Gadzislaw007 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 00:18.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode