Raised This Month: $ Target: $400
 0% 

Set And Remove Tasks


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Zombie Lurker
Senior Member
Join Date: Mar 2009
Old 06-05-2009 , 00:57   Re: Set And Remove Tasks
Reply With Quote #10

That isnt the actual code im using currently. I wanted the task to be auto-set on every round. Here's the code again but more exact :
PHP Code:
#define TASKID_LOL 100
 
public plugin_init() {
     
register_event("HLTV""event_new_round""a""1=0""2=0")
}
 
public 
event_new_round(id) {
     
set_task(13.0"LOL"TASKID_LOL+id)
}
 
public 
LOLid 
{
    if ( 
is_user_connectedid ) )
    {
        new 
CsTeams:userTeam cs_get_user_teamid )
 
        if( 
userTeam == CS_TEAM_T )
            
client_print(idprint_chat"[LOL] You are a terrorist.")  
        else if( 
userTeam == CS_TEAM_T )
            
client_print(idprint_chat"[LOL] You are a counter-terrorist.")
    }

__________________
Zombie Lurker 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 13:53.


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