From 395e610e8a336cc1f0cbb5a64831eae2cf959e2c Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sun, 17 Feb 2019 23:57:22 +1100 Subject: [PATCH] delay call by 10ms to avoid foreach premature foreach iterator removals --- gamemodes/irresistible/anticheat/hitpoints.pwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamemodes/irresistible/anticheat/hitpoints.pwn b/gamemodes/irresistible/anticheat/hitpoints.pwn index 6758918..4b5b067 100644 --- a/gamemodes/irresistible/anticheat/hitpoints.pwn +++ b/gamemodes/irresistible/anticheat/hitpoints.pwn @@ -232,7 +232,7 @@ stock AC_SetPlayerHealth( playerid, Float:amount ) } AC_SetPlayerSpawned( playerid, false ); - CallRemoteFunction( "OnPlayerDeathEx", "ddfd", playerid, p_LastDamageIssuer[ playerid ], p_LastWeaponIssuer[ playerid ], 3.3, 3 ); + SetTimerEx( "OnPlayerDeathEx", 10, false, "ddfd", playerid, p_LastDamageIssuer[ playerid ], p_LastWeaponIssuer[ playerid ], 3.3, 3 ); } return SetPlayerHealth( playerid, amount ); }