fix admin spec issue

This commit is contained in:
Lorenc Pekaj 2018-10-13 01:12:47 +11:00
parent b73f2bb9e4
commit c45e66e6bb

View File

@ -168,7 +168,7 @@ public OnPlayerFeedUpdate( playerid )
stock DamageFeedAddHitGiven( playerid, issuerid, Float: amount, weaponid )
{
foreach( new i : Player ) if ( p_Spectating{ i } && p_whomSpectating[ i ] == issuerid && i != playerid ) {
foreach( new i : Player ) if ( p_Spectating{ i } && p_whomSpectating[ i ] == playerid && i != playerid ) {
AddDamageHit( g_damageGiven[ i ], i, issuerid, amount, weaponid );
}
@ -177,7 +177,7 @@ stock DamageFeedAddHitGiven( playerid, issuerid, Float: amount, weaponid )
stock DamageFeedAddHitTaken( playerid, issuerid, Float: amount, weaponid )
{
foreach( new i : Player ) if ( p_Spectating{ i } && p_whomSpectating[ i ] == issuerid && i != playerid ) {
foreach( new i : Player ) if ( p_Spectating{ i } && p_whomSpectating[ i ] == playerid && i != playerid ) {
AddDamageHit( g_damageTaken[ i ], i, issuerid, amount, weaponid );
}