Raised This Month: $ Target: $400
 0% 

Change at each Hours


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
titics
Junior Member
Join Date: Jan 2006
Old 03-23-2006 , 09:20  
Reply With Quote #1

Code:
public load_mapcycle() 
{ 
   new today_str[8], cmd[48] 
   get_time("%H",today_str,8) 
   new today = strtonum(today_str) 

   if ((today >= 0) && (today < 9)) 
      format(cmd,48,"mapcyclefile addons/amxmodx/mapcycles/morning.cfg",today) 
   else if ((today >= 9) && (today < 18)) 
      format(cmd,48,"mapcyclefile addons/amxmodx/mapcycles/day.cfg",today) 
   else if (today >= 18) 
      format(cmd,48,"mapcyclefile addons/amxmodx/mapcycles/evening.cfg",today) 

   server_cmd(cmd) 

   return PLUGIN_HANDLED 
}
i would do the same thing but for for example sv_gravity.
what its possible ?
__________________
titics 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 16:44.


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