From 1738657ff7b96b5b4064a88bcbb24b1d1335078a Mon Sep 17 00:00:00 2001 From: Pichai Lertwachirakul <46616744+zekodef@users.noreply.github.com> Date: Fri, 4 Oct 2019 15:33:12 +0700 Subject: [PATCH] Airport travel bugfixes 1. accepts travel using casino points when money is lower than $2000. 2. accepts using casino point when casino point equal 5.0 points. --- gamemodes/sf-cnr.pwn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index a084bb0..73995fc 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -5670,9 +5670,9 @@ public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) if ( IsPlayerJailed( playerid ) ) return SendError( playerid, "You cannot travel while you're in jail." ); if ( p_WantedLevel[ playerid ] ) return SendError( playerid, "You cannot travel while you are wanted." ); - if ( GetPlayerCash( playerid ) < AIR_TRAVEL_COST ) return SendError( playerid, "You need %s to travel between cities.", cash_format( AIR_TRAVEL_COST ) ); + if ( !(( GetPlayerCash( playerid ) >= AIR_TRAVEL_COST ) || ( GetPlayerCasinoRewardsPoints( playerid ) >= 5.0 )) ) return SendError( playerid, "You need %s to travel between cities.", cash_format( AIR_TRAVEL_COST ) ); - new bool: using_rewards = GetPlayerCasinoRewardsPoints( playerid ) > 5.0; + new bool: using_rewards = GetPlayerCasinoRewardsPoints( playerid ) >= 5.0; // set position switch ( listitem )