Hello.
I found here this plugin but i have bit problem. Im also using "respawn forever" plugin and this gravity plugin isnt work good with it. When player is respawned, gravity is changed back to default. Can someone help me and fix it? I want it like when i change gravity by command, gravity will not change back to default after every respawn, but it will last until the end of the map. Thank you guys!
PHP Code:
#include <amxmodx>
#include <fun>
#define NORMAL_GRAVITY 1.0
#define LOW_GRAVITY 0.5
new bool:gravity[33];
public plugin_init()
register_clcmd("say /gravity", "clcmd_g");
public clcmd_g(id)
{
if(gravity[id]){
set_user_gravity(id, NORMAL_GRAVITY);
gravity[id] = false;
}
else {
set_user_gravity(id, LOW_GRAVITY);
gravity[id] = true;
}
}