Advertisement
RickyMeekle123

Untitled

May 11th, 2018
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. /*
  2. Author: Maxence Lyon
  3. Altis DEV: https://altisdev.com/user/maxence-lyon
  4. Teamspeak 3: ts.the-programmer.com
  5. Web site: www.the-programmer.com
  6. Steam: ยซ Une Vache Sur CS โ€“ Maxence ยป, please leave a message on my profile who says the exact reason before adding me.
  7.  
  8. Terms of use:
  9. - This file is forbidden unless you have permission from the author. If you have this file without permission to use it please do not use it and do not share it.
  10. - If you have permission to use this file, you can use it on your server however it is strictly forbidden to share it.
  11. - Out of respect for the author please do not delete this information.
  12.  
  13. License number:
  14. Server's name:
  15. Owner's name:
  16. */
  17. if (playerSide != west) then {
  18. player addEventHandler ["Fired", {
  19. _zones = [];
  20. for "_i" from 0 to count(missionConfigFile >> "Cfg_SafeZones")-1 do {
  21. _curConfig = (missionConfigFile >> "Cfg_SafeZones") select _i;
  22. _zones pushBack [(configName _curConfig),getNumber (_curConfig >> "radius")];
  23. };
  24.  
  25. if ({(_this select 0) distance getMarkerPos (_x select 0) < _x select 1} count _zones > 0) then {
  26. _myWeapon = currentWeapon player;
  27.  
  28. if (!(_myWeapon isEqualTo "") || !(isNil "_myWeapon")) then {
  29. _box = createVehicle ["groundWeaponHolder", player modelToWorld [0,0.8,0], [], 0.5, "CAN_COLLIDE"];
  30. _box setDir floor (random 360);
  31.  
  32. _box addWeaponCargoGlobal [_myWeapon,1];
  33. player action ["dropWeapon",_box,_myWeapon];
  34. player removeWeapon _myWeapon;
  35.  
  36. player reveal _box;
  37. };
  38.  
  39. hint parseText format["<t color='#01B0F0'><t size ='2'<t align='center'>SafeZone<br/><t color='#FFFFFF'><t align='center'><t size='1'>Why are you being silly in the greenzone? Fix up!</t></t></t>"];
  40. };
  41. }];
  42. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement