money dropped in pb

This commit is contained in:
Lorenc Pekaj 2018-10-14 19:39:53 +11:00
parent 17ee715b56
commit 7c325bb6eb

View File

@ -47,6 +47,9 @@ 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 ) )
return 1; // do not break return
new Float: X, Float: Y, Float: Z; new Float: X, Float: Y, Float: Z;
new expire_time = GetServerTime( ) + 180; new expire_time = GetServerTime( ) + 180;
@ -54,8 +57,6 @@ hook OnPlayerDeath( playerid, killerid, reason )
if ( IsPlayerConnected( killerid ) && ! IsPlayerNPC( killerid ) ) if ( IsPlayerConnected( killerid ) && ! IsPlayerNPC( killerid ) )
{ {
if ( IsPlayerJailed( playerid ) || IsPlayerInPaintBall( playerid ) || IsPlayerInEvent( playerid ) || IsPlayerDueling( playerid ) )
return 1;
for ( new slotid = 0; slotid < 13; slotid++ ) for ( new slotid = 0; slotid < 13; slotid++ )