Heey
I made an achievement plugin an month ago, but i got a problem with it.
It doesn't stop counting when you've made the achievement..
Example:
Assasin II | 1432/1100
The 1100 is the requirement.
How do i fix this?
PHP Code:
public Event_DeathMsg()
{
new iKiller = read_data(1)
new iVictim = read_data(2)
new weapon_name[24]
get_user_name(iKiller, szName, 32)
if(is_user_alive(iKiller) && get_user_team(iKiller) != get_user_team(iVictim))
{
Achievement[iKiller][MURDER]++
if(Achievement[iKiller][MURDER] == AchRequirement[MURDER])
{
TotalAchievements[iKiller]++
emit_sound(iKiller, CHAN_STATIC, gSoundAch, 1.0, ATTN_NORM, 0, PITCH_NORM);
ColorChat(0, GREY, "%s^4 %s^3 successfully unlocked the achievement^4 %s^3 and earned ^4%i $.", prefix, szName, AchName[MURDER], AchPoints[MURDER])
jbcash_add_user_cash(iKiller, jbcash_get_user_cash(iKiller) + AchPoints[MURDER])
SaveData(iKiller)
}
}
}
return PLUGIN_CONTINUE
}
Thanks in advance
__________________