edit: thx, i made an addition check not to allow 2nd execution of function in short-time, should work now i hope
PHP Code:
public plugin_init() {
register_clcmd("say", "function");
}
public function(id)
{
new said[192]
new i, j
new cheatername[32]
get_user_name(id, cheatername, 32)
read_args(said, 192)
for(i = 0 ; i < sizeof (CheatReports) ; i++)
{
if(containi(said, CheatReports[i][j]) != -1)
{
set_task(3.3,"nodb");
if(cheater_1 == 0)
{
action1(id)
return PLUGIN_HANDLED
}
}
}
for(i = 0 ; i < sizeof (CheatReports2) ; i++)
{
if(containi(said, CheatReports2[i][j]) != -1)
{
set_task(3.3,"nodc");
if(cheater_2 == 0)
{
action2(id)
return PLUGIN_HANDLED
}
}
}
return PLUGIN_CONTINUE
}
hi, i want to stop function() when action1() is executed and not to let action2() to execute, i thought return PLUGIN_HANDLED should do that but it doesn't, action2() is still executed after action1() if they both met conditions
__________________