Sorry about overwriting solved my post,
I'm new in Scripting Help board..
I've edit my post back to I was have a big problem.
but I cant remember what I was post down there..
here is how I solved the problem.
PHP Code:
public fw_PlayerKilled(victim, attacker, shouldgib)
{
if(!zp_get_user_zombie(attacker) && zp_get_user_zombie(victim))
if(g_Count < 16)
{
g_Count = min(g_Count + 1, 10 + g_morale_lv_up*5 + g_morale_15_lv*1)
client_print(0, print_center,"[Morale]Human killed %d Zombie~~ Morale up to LV.%d",g_Count,g_Count)
}
if(g_Count == 16)
{
client_print(0, print_center,"[Morale] MAX level")
}
}
change to
PHP Code:
public fw_PlayerKilled(victim, attacker, shouldgib)
{
if(is_user_alive(attacker) && cs_get_user_team(attacker) == CS_TEAM_CT && cs_get_user_team(victim) == CS_TEAM_T)
if(g_Count < 16)
{
g_Count = min(g_Count + 1, 10 + g_morale_lv_up*5 + g_morale_15_lv*1)
client_print(0, print_center,"[Morale]Human killed %d Zombie~~ Morale up to LV.%d",g_Count,g_Count)
}
if(g_Count == 16)
{
client_print(0, print_center,"[Morale] MAX level")
}
}
and problem solved
__________________