like this? and can you tell me what's the different if we put ';' after we return a value? and why? I just put it as I see a lot of plugin use it and compile locally works fine
PHP Code:
public clcmd_drop(id)
{
if (!zp_get_user_zombie(id) || !is_user_alive(id) || zp_get_user_nemesis(id))
return PLUGIN_CONTINUE;
if(zp_get_user_zombie_class(id) != g_iSirenZID)
return PLUGIN_CONTINUE;
if (g_bCanDoScreams[id] && !g_bDoingScream[id] && !g_bRoundEnding)
{
// Update bool
g_bInScreamProcess[id] = true
// Next scream time
set_task(g_iCvar_ScreamStartTime + 0.2, "task_do_scream", id+TASK_SCREAM)
return PLUGIN_HANDLED;
}
else if (g_bDoingScream[id])
{
// Stop scream main task
stop_scream_task(id)
}
return PLUGIN_CONTINUE;
}
__________________