How to detect if Survivor killed a hunter first time and the survivor gets a achieviment , but only when first time , and save if that player has an achieviment
PHP Code:
public plugin_init()
{
register_event("DeathMsg", "event_deathmsg3", "a")
}
public event_deathmsg3(id)
{
new victim = read_data(2)
new attacker = read_data(1)
if(get_user_team(victim) == CS_TEAM_T && InfectedClass[victim] == 0)
{
set_hudmessage(255, 0, 0, -1.0, 0.55, 0, 0.0, 2.0, 2.0, 1.0, -1);
ShowSyncHudMsg(attacker, "[L4D]: You gained a hunter killer achieviment!");
HunterAchieviment[attacker] = true;
}
}