Raised This Month: $ Target: $400
 0% 

Force start vote


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Bladell
Senior Member
Join Date: Jun 2012
Old 12-27-2013 , 08:19   Force start vote
Reply With Quote #1

Vote for the next map start when timeleft is under 1 minute. Is there a way to make a command wich start the vote for next map instantly?
I thought to a method wich do this almost instantly but is not working...no ideea why.

PHP Code:
public StartVoteMap(idlevelcid){  
    new 
timelimittimeleft
    
new Floatstimeleft

    
if(!cmd_access(idlevelcid2))
        return 
1

    timeleft 
get_timeleft()
    
timelimit get_cvar_num("mp_timelimit") * 60
    
    stimeleft 
float(timelimit timeleft 30)
    
    
ChatColor(id"%d %d %d"timelefttimelimitstimeleft)
    
    if(
timeleft > (get_pcvar_num(c_VoteMinTimeLeft) * 60))
        
ChatColor(id"^4[AMX]^1(VIP) You can use this command only in last %d minutes"get_pcvar_num(c_VoteMinTimeLeft) * 60)
    else if(
timeleft <= (get_pcvar_num(c_VoteMinTimeLeft) * 60))
        
set_cvar_float("mp_timelimit"stimeleft)
    else
        
ChatColor(id"^4[AMX]^1(VIP) Something went wrong, please contact the owner")
        
    return 
1


Last edited by Bladell; 12-27-2013 at 08:23.
Bladell is offline
 


Thread Tools
Display Modes

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 10:11.


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