Advertisement
AeogSonny

Untitled

Mar 19th, 2018
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.70 KB | None | 0 0
  1. /**
  2.  * StokesMagee's Resort
  3.  * www.stokesmagee.net
  4.  * © 2017 StokesMagee's Resort
  5.  *
  6.  * This work is property of StokesMagee. You do not have permissions to use/edit/distribute any of this content
  7.  * without written permission from StokesMagee.
  8.  */
  9.  
  10. _donorUIDs = ["76561198032316464","76561198009835920","76561198057059731"];
  11. _functions = [
  12.     ["ExileServer_paint_network_updatePaint", false, "(getPlayerUID _this) in _donorUIDs"],
  13.     ["SM_Paint_CalculateVehicleCost",true, "(getPlayerUID _this) in _donorUIDs"],
  14.     ["SM_Paint_ChangeMode",true, "(getPlayerUID _this) in _donorUIDs"],
  15.     ["SM_Paint_ConvertHexToRGB", true, "(getPlayerUID _this) in _donorUIDs"],
  16.     ["SM_Paint_ConvertRGB", true, "(getPlayerUID _this) in _donorUIDs"],
  17.     ["SM_Paint_Finish", true, "(getPlayerUID _this) in _donorUIDs"],
  18.     ["SM_Paint_HideControls", true, "(getPlayerUID _this) in _donorUIDs"],
  19.     ["SM_Paint_OnMouseButtonDown", true, "(getPlayerUID _this) in _donorUIDs"],
  20.     ["SM_Paint_OnMouseButtonUp", true, "(getPlayerUID _this) in _donorUIDs"],
  21.     ["SM_Paint_OnMouseMove", true, "(getPlayerUID _this) in _donorUIDs"],
  22.     ["SM_Paint_Show", true, "(getPlayerUID _this) in _donorUIDs"],
  23.     ["SM_Paint_ShowControls", true, "(getPlayerUID _this) in _donorUIDs"],
  24.     ["SM_Paint_UpdateCamera", true, "(getPlayerUID _this) in _donorUIDs"],
  25.     ["SM_Paint_UpdateTextures", true, "(getPlayerUID _this) in _donorUIDs"]
  26. ];
  27.  
  28. {
  29.     _path = "SM_Paint\code";
  30.     _x params["_function","_client"];
  31.     missionNamespace setVariable [_function, compileFinal format ["if !((getPlayerUID player) in %1) exitWith {}; %2", _donorUIDs, preprocessFileLineNumbers format["%1\%2.sqf", _path, _function]], true];
  32. } forEach _functions
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement