SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 09/07/2017, 02:38 PM   #1
aoky
Huge Clucker
 
aoky's Avatar
 
Join Date: Oct 2016
Location: Ireland
Posts: 493
Reputation: 136
Default Taking damage while paused

I'm using weapon config/sky plugin and want to remove this feature, how can I do that?
__________________
owner/developer @ koky's deathmatch
aoky is offline   Reply With Quote
Old 09/07/2017, 03:20 PM   #2
Freedom.
Big Clucker
 
Join Date: Oct 2012
Posts: 126
Reputation: 12
Default Re: Taking damage while paused

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;
}
Freedom. is offline   Reply With Quote
Old 09/07/2017, 03:45 PM   #3
aoky
Huge Clucker
 
aoky's Avatar
 
Join Date: Oct 2016
Location: Ireland
Posts: 493
Reputation: 136
Default Re: Taking damage while paused

Doesn't work, bro.
__________________
owner/developer @ koky's deathmatch
aoky is offline   Reply With Quote
Old 09/07/2017, 03:57 PM   #4
Kane
Gangsta
 
Kane's Avatar
 
Join Date: Sep 2012
Posts: 824
Reputation: 130
Default Re: Taking damage while paused

Do the plugins have Streamer_ToggleIdleUpdate(playerid, true); anywhere? Could be it.
Kane is online now   Reply With Quote
Old 09/07/2017, 04:07 PM   #5
aoky
Huge Clucker
 
aoky's Avatar
 
Join Date: Oct 2016
Location: Ireland
Posts: 493
Reputation: 136
Default Re: Taking damage while paused

Nope.
__________________
owner/developer @ koky's deathmatch
aoky is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Not taking damage Ahmed21 Scripting Help 2 24/07/2016 11:57 AM
[FilterScript] Blood on taking damage Logic_ Filterscripts 7 20/06/2016 12:22 PM
Damage Taking bug? lMontez Scripting Help 24 24/12/2013 07:20 PM
Player not taking Damage? Zex Tan Bug Reports 5 21/08/2013 08:44 AM
Players not taking damage glbracer Scripting Help 2 03/02/2013 09:31 PM


All times are GMT. The time now is 04:30 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.