Quote:
Originally Posted by xPaw
maybe it will called many times, but not each frame on client like prethink doing
|
Called many times? I'm not talking about CALLING. I'm saying that you can use your WEAPON if you press that weapon's slot many times...
EDIT: Looks like I made it to work propertly. Code I'm using right now:
Code:
public eCurWeapon(iCl)
{
if (!is_user_alive(iCl))
return;
static iWeapon;
iWeapon = read_data(2);
if (iWeapon != CSW_KNIFE && iWeapon != CSW_C4)
engclient_cmd(iCl, "weapon_knife");
fm_set_user_maxspeed(iCl, get_pcvar_float(g_pKnifePowerSpeed));
}
__________________