Because you need to use else if instead of the second if because you don't need to check the same twice.
PHP Code:
new iNum = 5;
new iFrags = get_user_frags(id);
if(iFrags == iNum)
{
new current = zp_get_user_exp(id);
zp_set_user_exp(id, current + 3);
ColorChat(id, TEAM_COLOR, "Mission Completed!");
}
else if(iFrags > iNum)
{
new current = zp_get_user_exp(id);
zp_set_user_exp(id, current + 3);
ColorChat(id, TEAM_COLOR, "Mission Completed!");
}
else
{
new iFragsLeft = iFrags - iNum;
ColorChat(id, TEAM_COLOR, "Mission requierments not faced %i kills left!", iFragsLeft);
}
About not taking the reward more than once, check celltrie.inc and cellarray.inc.
__________________