Disable giving wanted level when surfing criminal car

This commit is contained in:
ChronosX88 2024-01-09 17:48:40 +03:00
parent ab44f5f339
commit dcff092244

View File

@ -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"\