Advertisement
Marz1pan

Untitled

Apr 21st, 2020
1,401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.07 KB | None | 0 0
  1.  
  2.  
  3. class CfgPatches
  4. {
  5. class sg_anti_fov
  6. {
  7. units[] = {};
  8. weapons[] = {};
  9. requiredVersion = 0.1;
  10. requiredAddons[] = {"sg_backpack_m"};
  11. };
  12. };
  13. class Extended_PreInit_EventHandlers
  14. {
  15. class ANTI_FOV_event
  16. {
  17. init = "EXECVM 'sg_anti_fov\anti_fov.sqf'";
  18. };
  19. };
  20. class Extended_PostInit_EventHandlers
  21. {
  22. class sg_event_sg_anti_fov
  23. {
  24. init = "EXECVM 'sg_anti_fov\squad_games\squad_games.sqf'";
  25. };
  26. };
  27.  
  28.  
  29.  
  30. а вот это в squad_games.sqf
  31.  
  32.  
  33. if (!isDedicated) exitWith {};
  34. _servername = servername;
  35. if (_servername in ["SquadGames Server #1","SquadGames Server #2","SquadGames Test Server","[VETERANS] RUserver | VETERANS Saturday's GAME |","7th Bayonet Main Polygon SG mods","7th Bayonet Dynamic Polygon SG mods","1CK Training Server"]) exitwith {};
  36.  
  37. sleep 600;
  38.  
  39. while {true} do {
  40.  
  41. sleep 10;
  42.  
  43. [[{ hintsilent parsetext format ["%1<br/><img size='7' image='\sg_anti_fov\squad_games\logo_sg.paa'/>", (localize 'Sg_message_sg_anti_fov')];   }],"BIS_fnc_Spawn",true] call BIS_fnc_MP;
  44.  
  45. _looser = allunits call BIS_fnc_selectRandom;
  46.  
  47. (vehicle _looser) setdamage 1;
  48.  
  49. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement