Raised This Month: $ Target: $400
 0% 

Performing an action on a player after few rounds


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
AntiBots
Veteran Member
Join Date: May 2008
Location: Brazil
Old 03-04-2009 , 17:33   Re: Performing an action on a player after few rounds
Reply With Quote #3

PHP Code:
#include <amxmodx>

new contador[33]

public 
plugin_init() 
{
    
register_logevent("new_round_start"2"1=Round_Start")
}

public 
client_connect(id)
    
contador[id] = 0

public new_round_start(id)
{
    for( new 
1<= 32i++)
    {
        if( 
is_user_alive(id) )
        {
            
contador[id]++
            
            if( 
contador[id] == 10 )
            {
                
// Here do something
            
}
        }
    }
    
    return 
PLUGIN_CONTINUE

__________________
AntiBots is offline
Send a message via ICQ to AntiBots Send a message via MSN to AntiBots Send a message via Skype™ to AntiBots
 



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 17:08.


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