1. Sorry, I'm not sure how to fix it. As I said before, just use Knife API from AM.
2. Just change this:
public OnPlayerEvent_Damage(victim, inflictor, attacker, Float:damage, damagebits) { if(!is_user_alive(attacker)) return
// For first weapon if(g_Weapon1[attacker]) { // This will increase the weapon damage by 2 times SetHamParamFloat(4,damage*2.0) } // For second weapon else if(g_Weapon2[attacker]) { // This will increase the weapon damage by 3 times SetHamParamFloat(4,damage*3.0) } // For third weapon else if(g_Weapon3[attacker]) { // This will increase the weapon damage by 4 times SetHamParamFloat(4,damage*4.0) } } -->
public OnPlayerEvent_Damage(victim, inflictor, attacker, Float:damage, damagebits) { if(!is_user_alive(attacker)) return
if(get_user_weapon(attacker) == CSW_KNIFE) { // For first weapon if(g_Weapon1[attacker]) { // This will increase the weapon damage by 2 times SetHamParamFloat(4,damage*2.0) } // For second weapon else if(g_Weapon2[attacker]) { // This will increase the weapon damage by 3 times SetHamParamFloat(4,damage*3.0) } // For third weapon else if(g_Weapon3[attacker]) { // This will increase the weapon damage by 4 times SetHamParamFloat(4,damage*4.0) } } }
3. Sorry, what do you mean?
Personal message only for paid request. If you love this forum, kindly to donate by clicking the donate button at the footer of this forum.