Advertisement
aeroson

Arma 3: Prevent negative rating

Nov 21st, 2014
315
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. /*
  2. USAGE: Paste this code anywhere where it executes once, preferably to the bottom of init.sqf
  3.  
  4. This script detects and resets negative player ratings. The ArmA engine tracks and punishes team killers by reducing the rating of offenders. Any one with a rating below -2000 is considered a "traitor", an enemy to his or her own faction. This makes AI attack them, and prevents non-traitors from entering any vehicle with a traitor in it. Teamkillers can also be a driver of vehicle that blew up, the deaths of the crew are counted as teamkills by the driver. Run this code if you don't want the game to punish teamkillers this way.
  5. */
  6.  
  7. if(hasInterface) then {
  8. [] spawn {
  9. while{true} do {
  10. player addRating 1000000;
  11. waitUntil {
  12. sleep 10;
  13. rating player < 10000
  14. };
  15. };
  16. };
  17. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement