Raised This Month: $51 Target: $400
 12% 

cvars setting up with


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
forumm
Senior Member
Join Date: Nov 2013
Old 11-10-2014 , 06:39   cvars setting up with
Reply With Quote #1

I have this plug-in will open the show and the time cvar I want to adjust

the map and adjust the time cvar


PHP Code:
#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
set_task(60.0,"Kontrol",_,_,_,"b")
}
public 
Kontrol() {
    new 
mapname[32],systime[5];
    
get_mapname(mapname,31)
    
get_time("%H",systime,4);
    if(
equali(systime,"23")) {
        if(!
equali(mapname,"surf_ski_2")) {
            
server_cmd("changelevel surf_ski_2")
        }
        else if(
get_cvar_num("mp_timelimit")) {
            
set_cvar_num("mp_timelimit",0)
        }
    }
    else if(
equali(systime,"11") && !get_cvar_num("mp_timelimit")) {
        
set_cvar_num("mp_timelimit",0)
    }

forumm is offline
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 11-10-2014 , 16:20   Re: cvars setting up with
Reply With Quote #2

So do it? I don't understand your question.
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
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 02:54.


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