From f66b4069a1c54c3311d299fc5dd9dc5e1600f249 Mon Sep 17 00:00:00 2001 From: Damen Date: Fri, 25 Jan 2019 19:48:35 -0500 Subject: [PATCH] adds the anti-q-to-avoid system to emp attempts --- gamemodes/sf-cnr.pwn | 2 ++ scriptfiles/updates.txt | 1 + 2 files changed, 3 insertions(+) diff --git a/gamemodes/sf-cnr.pwn b/gamemodes/sf-cnr.pwn index fd90e66..29e3b6e 100644 --- a/gamemodes/sf-cnr.pwn +++ b/gamemodes/sf-cnr.pwn @@ -2710,12 +2710,14 @@ CMD:emp( playerid, params[ ] ) { SendClientMessage( playerid, -1, ""COL_RED"[EMP]{FFFFFF} An Electromagnetic Pulse attempt has been repelled by an aluminum foil!" ); SendClientMessage( pID, -1, ""COL_GREEN"[EMP]{FFFFFF} Electromagnetic Pulse had been repelled by aluminum foil set on vehicle." ); + p_QuitToAvoidTimestamp[ pID ] = g_iTime + 15; return 1; } } SendClientMessageFormatted( pID, -1, ""COL_RED"[EMP]{FFFFFF} %s(%d) has sent an electromagnetic pulse on your vehicle causing it to crash for 30 seconds.", ReturnPlayerName( playerid ), playerid ); SendClientMessageFormatted( playerid, -1, ""COL_GREEN"[EMP]{FFFFFF} You have activated a electromagnetic pulse on %s(%d)'s vehicle!", ReturnPlayerName( pID ), pID ); + p_QuitToAvoidTimestamp[ pID ] = g_iTime + 15; SetTimerEx( "emp_deactivate", 30000, false, "d", GetPlayerVehicleID( pID ) ); GetVehicleParamsEx( iVehicle, engine, lights, alarm, doors, bonnet, boot, objective ); SetVehicleParamsEx( iVehicle, VEHICLE_PARAMS_OFF, lights, alarm, doors, bonnet, boot, objective ); diff --git a/scriptfiles/updates.txt b/scriptfiles/updates.txt index 13bc552..8930e30 100644 --- a/scriptfiles/updates.txt +++ b/scriptfiles/updates.txt @@ -11,6 +11,7 @@ (*) Removes the ability to send IC to administrators who are spectating you. (Damen) (*) Removes the ability to farm IC by using animations. (Damen) (*) You can no longer use animations while wearing a parachute to avoid fake deaths. (Damen) +(*) EMPs now trigger the anti-Q to avoid system to punish those who attempt to evade LEOs. (Damen) (*) /spawn should now display beyond 60 homes. (Stev) (*) Business production label should now display the correct amount of money. (Stev) (*) Militia Ship should no longer be robbable through the wall. (Kova) \ No newline at end of file