Raised This Month: $ Target: $400
 0% 

[HELP] Event on 2-nd round start


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
alonelive
Senior Member
Join Date: Jan 2011
Location: Big snow country.. :)
Old 06-10-2011 , 12:42   [HELP] Event on 2-nd round start
Reply With Quote #1

how to make the plugin started to work not after 150 seconds, and after the second round start?

PHP Code:
public plugin_cfg()
{
    
menu menu_create("\wСколько вы хотите поиграть на этой карте?""menu_handler")
    
    for(new 
i=0;i<MAX_RESULTS;i++)
        
g_tls[i] = get_pcvar_num(tls[i])
    
    
set_task(150.0"start_vote")
    
    
build_menu()

Attached Files
File Type: sma Get Plugin or Get Source (timelimitvote.sma - 139 views - 3.8 KB)
__________________
sorry my bad english...
alonelive is offline
lis_16
Senior Member
Join Date: Feb 2008
Old 06-10-2011 , 13:26   Re: [HELP] Event on 2-nd round start
Reply With Quote #2

Read about round start event, make a global variable and add +1 to it after every round started. In this same event check if (variable>=2) force start_vote.
lis_16 is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 06-10-2011 , 14:28   Re: [HELP] Event on 2-nd round start
Reply With Quote #3

Check,

if(variable == 2)

because if you check if variable is equal or greater than 2 then it will give a menu everyround after second one.
reinert is offline
lis_16
Senior Member
Join Date: Feb 2008
Old 06-10-2011 , 14:51   Re: [HELP] Event on 2-nd round start
Reply With Quote #4

My bad.
lis_16 is offline
Reply



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 23:24.


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