delay call by 10ms to avoid foreach premature foreach iterator removals
This commit is contained in:
parent
606a3e3ee0
commit
395e610e8a
@ -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 );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user