Taking damage while paused
#1

I'm using weapon config/sky plugin and want to remove this feature, how can I do that?
Reply
#2

Code:
forward OnPlayerPause(playerid);
public OnPlayerPause(playerid)
{
	SetPVarInt(playerid, "IsPaused", 1);
	return 1;
}

forward OnPlayerUnPause(playerid);
public OnPlayerUnPause(playerid)
{
	SetPVarInt(playerid, "IsPaused", 0);
	return 1;
}

public OnPlayerDamage(&playerid, &Float:amount, &issuerid, &weapon, &bodypart)
{
	if (issuerid != INVALID_PLAYER_ID && weapon != 51)
	{
	    if (GetPVarInt(playerid, "IsPaused") == 1)
		{
			return 0;
		}
	}
	return 1;
}
Reply
#3

Doesn't work, bro.
Reply
#4

Do the plugins have Streamer_ToggleIdleUpdate(playerid, true); anywhere? Could be it.
Reply
#5

Nope.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)