Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
#include <xs>
cvar_recoil
new szWeapon[17]
new Float:cl_pushangle[33][3]
public plugin_init() {
cvar_recoil = register_cvar("zp_akm203_recoil", "0")
RegisterHam(Ham_Weapon_PrimaryAttack, szWeapon, "fw_primary_attack")
RegisterHam(Ham_Weapon_PrimaryAttack, szWeapon, "fw_primary_attack_post",1)
register_clcmd("drop","cmd_drop", 0)
}
public fw_primary_attack(ent)
{
new id = pev(ent,pev_owner)
pev(id,pev_punchangle,cl_pushangle[id])
return HAM_IGNORED
}
public fw_primary_attack_post(ent)
{
new id = pev(ent,pev_owner)
new szClip, szAmmo
new szWeapID = get_user_weapon( id, szClip, szAmmo )
if( szWeapID == CSW_AK47 && g_ak47[id] == true)
{
new Float:push[3]
pev(id,pev_punchangle,push)
xs_vec_sub(push,cl_pushangle[id],push)
xs_vec_mul_scalar(push,get_pcvar_float(cvar_recoil),push)
xs_vec_add(push,cl_pushangle[id],push)
set_pev(id,pev_punchangle,push)
}
return HAM_IGNORED
}
. Để thứ 7 tôi giải quyết hộ cho