First, let's post the code...
PHP Code:
public PlayerKilled(victim, attacker);
{
gIsFreeday[id] = false; // line 3
gHasCrowbar[id] = false; // line 4
CheckSimon(victim); // line 6
RewardEur(victim, attacker); // line 7
}
public CheckSimon(id)
{
if(!gIsSimon[id])
return PLUGIN_CONTINUE; // line 13
gIsSimon[id] = false; // line 15
gSimon = 0;
ColorChat(0, GREEN, "[Jail] Simon je ubijen, neko bi trebao da ga zameni");
}
Now that's an example (I'm not gonna post it, It's for me only, don't worry, I know there are hundreds of jail plugins). When a player dies, in the function PlayerKilled It's supposed to set his variables to false (line 3 and 4), then call the function CheckSimon (line 6). But after doing CheckSimon, It's supposed to call RewardEur (line 7). Now. Inside the CheckSimon function. It's supposed to check if the user is simon. If not then It halts the function. If I use PLUGIN_HANDLED instead of PLUGIN_CONTINUE on line 13, will it also halt the previous function where CheckSimon was called? And does PLUGIN_CONTINUE actually halt this function but continues with CheckSimon?
I'm a bit confused so if you can't understand me go ahead.