fix bug with kicked paintball players droppin money
This commit is contained in:
parent
b2c10884e8
commit
c41eb323cd
@ -567,6 +567,9 @@ stock hasPaintBallArena( playerid, &arena = -1 )
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stock IsPlayerLeavingPaintball( playerid ) {
|
||||||
|
return p_LeftPaintball{ playerid };
|
||||||
|
}
|
||||||
|
|
||||||
/* ** Commands ** */
|
/* ** Commands ** */
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ hook OnPlayerDeathEx( playerid, killerid, reason, Float: damage, bodypart )
|
|||||||
hook OnPlayerDeath( playerid, killerid, reason )
|
hook OnPlayerDeath( playerid, killerid, reason )
|
||||||
#endif
|
#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
|
return 1; // do not break return
|
||||||
|
|
||||||
new Float: X, Float: Y, Float: Z;
|
new Float: X, Float: Y, Float: Z;
|
||||||
|
Loading…
Reference in New Issue
Block a user