Raised This Month: $ Target: $400
 0% 

Making a new zone


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
grimvh2
Veteran Member
Join Date: Nov 2007
Location: Fishdot Nation
Old 10-18-2009 , 12:41   Re: Making a new zone
Reply With Quote #6

PHP Code:
new allow[33]
new 
delay

// In plugin init
delay register_cvar("amx_timedelay""120"// in seconds 

// at your cmd when you start the map
set_task(get_pcvar_float(delay), "timecheck",id)

public 
timecheck(id)
    
allow[id]++

public 
fwd_FM_CmdStart_pre(iduc_handle)
{        
    for(new 
ii<g_iZonesNumi++)
    {
        if( 
is_user_in_zone(idi) && allow[id])
        {
            
/* User is in zone */
        
}
    }
    return 
FMRES_IGNORED;

__________________
I am out of order!
grimvh2 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 22:32.


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