maximum player can drop is $25K

This commit is contained in:
Lorenc Pekaj 2018-11-10 18:02:57 +11:00
parent 2117e37235
commit 2f6202a4a0

View File

@ -100,6 +100,11 @@ hook OnPlayerDeath( playerid, killerid, reason )
new
player_money = floatround( float( GetPlayerCash( playerid ) ) * 0.1 );
// throttle drop amount to 25K
if ( player_money > 25000 ) {
player_money = 25000;
}
if ( player_money > 0 )
{
// half the amount lost through secure wallet