Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] ZCLASS = SMOKER L4D2 3.0 BETA 2 (JAN 2012 UPDATE!)


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
JoKeR LauGh
Veteran Member
Join Date: May 2011
Location: Malaysia
Old 09-16-2011 , 23:22   Re: [ZP] ZCLASS = SMOKER L4D2 (( 1.2 ( Sept 16, 2011 Updated) ))
Reply With Quote #10

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;

__________________
Quote:
Originally Posted by addons_zz View Post
Also, just to not read `the article`, read all you find. Read and read, for ever and ever. Never stop reading.
Why? Because there is not one single universal truth which holds the meaning for everything.

Last edited by JoKeR LauGh; 09-16-2011 at 23:28.
JoKeR LauGh is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:32.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode