From 60df8738df5e891f4e7d0e32fb7be5c1957639fd Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Mon, 15 Oct 2018 21:28:05 +1100 Subject: [PATCH] sync refilled health bugfix --- gamemodes/irresistible/cnr/features/damage_feed.pwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/irresistible/cnr/features/damage_feed.pwn b/gamemodes/irresistible/cnr/features/damage_feed.pwn index c4f4cb9..8670b7c 100644 --- a/gamemodes/irresistible/cnr/features/damage_feed.pwn +++ b/gamemodes/irresistible/cnr/features/damage_feed.pwn @@ -141,6 +141,7 @@ hook SetPlayerRandomSpawn( playerid ) if ( p_SyncingPlayer{ playerid } == true ) { ResetPlayerWeapons( playerid ); + DisablePlayerSpawnProtection( playerid ); SetPlayerWantedLevel( playerid, g_syncData[ playerid ] [ E_WANTED_LEVEL ] ); SetPlayerHealth( playerid, g_syncData[ playerid ] [ E_HEALTH ] ); @@ -157,7 +158,6 @@ hook SetPlayerRandomSpawn( playerid ) SetPlayerArmedWeapon( playerid, g_syncData[ playerid ] [ E_CURRENT_WEAPON ] ); SetCameraBehindPlayer( playerid ); - DisablePlayerSpawnProtection( playerid ); p_SyncingPlayer{ playerid } = false; return Y_HOOKS_BREAK_RETURN_1;