Raised This Month: $ Target: $400
 0% 

tasks


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
liryck
Senior Member
Join Date: Mar 2007
Location: Venezuela
Old 03-19-2010 , 18:48   Re: tasks
Reply With Quote #6

basically i have something like this. when i call again awesomemenu the task will start again?

PHP Code:
AwesomeMenuid 

     new  
menu menu_create("\yChoose Player:""menu_handler");
     new 
menu_id menu
     showmenu
id ); 
     
set_task10.0 "random_choose" menu_id ); 
}

menu_handler(id,menu,item)
{
   
//this is called only if player select something so
   
remove_task(menu_id)
}

random_choose(menu)
{
 new 
ran
            ran 
random(iNum);
            
iPlayers[ran] = iPlayers[--iNum];
            
player iPlayers[ran];    

               
cs_set_user_team(playerCS_TEAM_CT)
                
get_user_name(player,name,31)
                
                
client_print(0,print_chat,"%s Fue Elegido al Azar Para CT",name)
                
count_team++
                
                
teams[player] = 1
                team 
true
                
                check_team
(); // Check What Should be Displayed in the screen By Mile_
                
check_continue(); // Check if all players was selected to continue
        
                
menu_destroy(menu)
                
set_task(5.0,"AwesomeMenu",t_cap)
                return 
PLUGIN_HANDLED;

liryck is offline
Send a message via MSN to liryck
 



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


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