EDIT:
 
Tekrar dene.
 
  PHP- Kodu:
  /* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <fun>
#include <hamsandwich>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "JDM"
public plugin_init() {
    register_plugin(PLUGIN, VERSION, AUTHOR)
    
    RegisterHam(Ham_TakeDamage,"player","OyuncuHasar")
}
public OyuncuHasar(victim, inflictor, attacker, Float:damage, bits) {
    if(get_user_team(attacker) == 1 && get_user_team(victim) == 2) {
        if(get_user_health(attacker) < 100) {
            set_user_health(attacker, get_user_health(attacker) + 10)
        }
    }
    return HAM_IGNORED;
}