fix bug with kicked paintball players droppin money

This commit is contained in:
Lorenc Pekaj 2018-10-15 19:49:48 +11:00
parent b2c10884e8
commit c41eb323cd
2 changed files with 4 additions and 1 deletions

View File

@ -567,6 +567,9 @@ stock hasPaintBallArena( playerid, &arena = -1 )
return false;
}
stock IsPlayerLeavingPaintball( playerid ) {
return p_LeftPaintball{ playerid };
}
/* ** Commands ** */

View File

@ -47,7 +47,7 @@ hook OnPlayerDeathEx( playerid, killerid, reason, Float: damage, bodypart )
hook OnPlayerDeath( playerid, killerid, reason )
#endif
{
if ( IsPlayerJailed( playerid ) || IsPlayerInPaintBall( playerid ) || IsPlayerInEvent( playerid ) || IsPlayerDueling( playerid ) )
if ( IsPlayerJailed( playerid ) || IsPlayerInPaintBall( playerid ) || IsPlayerInEvent( playerid ) || IsPlayerDueling( playerid ) || IsPlayerLeavingPaintball( playerid ) )
return 1; // do not break return
new Float: X, Float: Y, Float: Z;