adds the anti-q-to-avoid system to emp attempts
This commit is contained in:
parent
7278d113f5
commit
f66b4069a1
@ -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 );
|
||||
|
@ -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)
|
Loading…
Reference in New Issue
Block a user