From 2f6202a4a00da8583178cc2450a72c4224d26554 Mon Sep 17 00:00:00 2001 From: Lorenc Pekaj Date: Sat, 10 Nov 2018 18:02:57 +1100 Subject: [PATCH] maximum player can drop is $25K --- gamemodes/irresistible/cnr/features/weapon_drop.pwn | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gamemodes/irresistible/cnr/features/weapon_drop.pwn b/gamemodes/irresistible/cnr/features/weapon_drop.pwn index 395499d..00c9de4 100644 --- a/gamemodes/irresistible/cnr/features/weapon_drop.pwn +++ b/gamemodes/irresistible/cnr/features/weapon_drop.pwn @@ -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