Code:
#include <amxmodx>
#include <amxmisc>
#define DEFAULT_HAPPY_POINT 10
new g_happy_sad_lvl[33]
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("DeathMsg", "hook_death", "a", "1>0")
}
public client_connect(id)
{
g_happy_sad_lvl[id] = DEFAULT_HAPPY_POINT
}
public client_disconnect(id)
{
g_happy_sad_lvl[id] = DEFAULT_HAPPY_POINT
}
public hook_death()
{
new killer = read_data(1)
new victim = read_data(2)
g_happy_sad_lvl[victim]--
if(killer == victim)
return
if(get_user_team(killer) == get_user_team(victim))
g_happy_sad_lvl[killer]--
else
g_happy_sad_lvl[killer]++
}
something like this. good luck.
__________________
Project : CSDM all in one - 99%
<team balancer#no round end#entity remover#quake sounds#fake full#maps management menu#players punishment menu#no team flash#colored flashbang#grenade trails#HE effect#spawn protection#weapon arena#weapon upgrade#auto join#no weapon drop#one name>