delay call by 10ms to avoid foreach premature foreach iterator removals

This commit is contained in:
Lorenc Pekaj 2019-02-17 23:57:22 +11:00
parent 606a3e3ee0
commit 395e610e8a

View File

@ -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 );
}