Page 2 of 2

Re: Gravity

Posted: Thu May 24, 2012 2:55 pm
by nick_6893
Sourcemod Way :P

Code: Select all

decl String:mapname[32];
GetCurrentMap(mapname, sizeof(mapname));
if(StrContains(mapname, "killbox", false) == -1)
{
  ServerCommand("sv_gravity 300");
}
else
{
  ServerCommand("sv_gravity 600");
}

Re: Gravity

Posted: Thu May 24, 2012 3:00 pm
by Nicdel
nick_6893 wrote:Sourcemod Way :P

Code: Select all

decl String:mapname[32];
GetCurrentMap(mapname, sizeof(mapname));
if(StrContains(mapname, "killbox", false) == -1)
{
  ServerCommand("sv_gravity 300");
}
else
{
  ServerCommand("sv_gravity 600");
}
All credits to Nico, thanks :>

Re: Gravity

Posted: Sun Jun 03, 2012 7:00 pm
by ant_8490
Plugin Created and on the server:

gravity is 300 on any map containing the name "killbox" and 600 (default) otherwise.