hi, I did as a player scores his team-mate shoots himself +1.The problem is that the passing score of +1 if the player kills himself again.
player console "kill" = +1 frag ---- I do not want it
PHP Code:
#include <amxmodx>
#include <hamsandwich>
#include <fun>
public plugin_init()
{
register_plugin("Takim Arkadasi Skor + 1","1.0","CSmiLeFaCe")
RegisterHam(Ham_Killed, "player", "oyuncugeberdiginde")
}
public oyuncugeberdiginde(victim, attacker, shouldgib)
{
if(get_user_team(attacker) == 1)
{
if(get_user_team(victim) == 1)
{
set_user_frags(attacker, get_user_frags(attacker) +2)
}
}
if(get_user_team(attacker) == 2)
{
if(get_user_team(victim) == 2)
{
set_user_frags(attacker, get_user_frags(attacker) +2)
}
}
return PLUGIN_HANDLED;
}
__________________