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");
}
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 :>nick_6893 wrote:Sourcemod Way
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"); }