From dcff0922444f3ed2eb1e9355287412a793667ad2 Mon Sep 17 00:00:00 2001 From: ChronosX88 Date: Tue, 9 Jan 2024 17:48:40 +0300 Subject: [PATCH] Disable giving wanted level when surfing criminal car --- gamemodes/sf-cnr.pwn | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index b561214..007262c 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -241,21 +241,22 @@ public OnServerUpdateTimer( ) // Uncuff( playerid ); // Surfing a criminal vehicle - if ( p_WantedLevel[ playerid ] < 6 && p_Class[ playerid ] != CLASS_POLICE ) - { - new - surfing_vehicle = GetPlayerSurfingVehicleID( playerid ); + // DISABLED RN + // if ( p_WantedLevel[ playerid ] < 6 && p_Class[ playerid ] != CLASS_POLICE ) + // { + // new + // surfing_vehicle = GetPlayerSurfingVehicleID( playerid ); - if ( surfing_vehicle != INVALID_VEHICLE_ID ) - { - new - driverid = GetVehicleDriver( surfing_vehicle ); + // if ( surfing_vehicle != INVALID_VEHICLE_ID ) + // { + // new + // driverid = GetVehicleDriver( surfing_vehicle ); - if ( IsPlayerConnected( driverid ) && p_WantedLevel[ driverid ] > 2 && p_Class[ driverid ] != CLASS_POLICE ) { - GivePlayerWantedLevel( playerid, 6 - p_WantedLevel[ playerid ] ); - } - } - } + // if ( IsPlayerConnected( driverid ) && p_WantedLevel[ driverid ] > 2 && p_Class[ driverid ] != CLASS_POLICE ) { + // GivePlayerWantedLevel( playerid, 6 - p_WantedLevel[ playerid ] ); + // } + // } + // } new aiming_player = GetPlayerTargetPlayer( playerid ); @@ -267,7 +268,7 @@ public OnServerUpdateTimer( ) } // AFK Players - if ( ( GetTickCount( ) - p_AFKTime[ playerid ] ) >= 45000 ) + if ( ( GetTickCount( ) - p_AFKTime[ playerid ] ) >= 60 * 1000 ) // 60 secs { // AFK Jail if ( p_WantedLevel[ playerid ] >= 6 && p_InHouse[ playerid ] == -1 && !IsPlayerAdminOnDuty( playerid ) && !IsPlayerInEntrance( playerid, g_VIPLounge[ CITY_SF ] ) && !IsPlayerInEntrance( playerid, g_VIPLounge[ CITY_LV ] ) && !IsPlayerInEntrance( playerid, g_VIPLounge[ CITY_LS ] ) && !IsPlayerTied( playerid ) && !IsPlayerKidnapped( playerid ) && !IsPlayerCuffed( playerid ) && !IsPlayerTazed( playerid ) && IsPlayerSpawned( playerid ) ) { // && !IsPlayerDetained( playerid ) @@ -5169,8 +5170,7 @@ public OnDialogResponse( playerid, dialogid, response, listitem, inputtext[ ] ) ""COL_GREY"/idof{FFFFFF} - Displays the specified player's ID and their username.\n"\ ""COL_GREY"/lastlogged{FFFFFF} - Shows the last played time of a user.\n"\ ""COL_GREY"/animlist{FFFFFF} - Shows the animation list.\n"\ - ""COL_GREY"/jaillist{FFFFFF} - Shows the jailed player list.\n"\ - ""COL_GREY"/twitter{FFFFFF} - Shows the latest tweets from @IrresistibleDev\n" ); + ""COL_GREY"/jaillist{FFFFFF} - Shows the jailed player list.\n" ); strcat( szCMDS, ""COL_GREY"/weeklytime{FFFFFF} - Shows the weekly time of a player.\n\n" ); strcat( szCMDS, ""COL_GOLD"Communication Commands\n\n"\ ""COL_GREY"/me{FFFFFF} - Sends a message based action with yourself.\n"\