AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Change at each Hours (https://forums.alliedmods.net/showthread.php?t=25908)

titics 03-23-2006 08:16

Change at each Hours
 
Ello everyone,

i searched one plugin which change some cvar @ some Hours.
I give one example:

AT 16:00 sv_gravity =200
AT 17:00 sv_gravity=800 | mp_friendlyfire =1

i thought there had one plugin which do it but i cant find it.
Maybe someone can help me :)

Thx in advance:) :lol:

Rixorster 03-23-2006 08:21

Maybe you could check...
http://www.amxmodx.org/funcwiki.php?go=func&id=249
Or
http://www.amxmodx.org/funcwiki.php?go=func&id=251

titics 03-23-2006 08:48

i think there is allready one plugin which do it but dont remember name ;)

titics 03-23-2006 09:20

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 03-30-2006 04:03

someone can help me pls for it

Thx in advance

v3x 03-30-2006 04:43

What's the problem?


All times are GMT -4. The time now is 16:44.

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