Guest User

Activate.sqf

a guest
May 8th, 2014
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. Activate
  2.  
  3. if ((getPlayerUID player) in AdminList || (getPlayerUID player) in ModList) then {
  4.  
  5. if (isnil "tracker") then {tracker = true;};
  6.  
  7. if (tracker) then
  8. {
  9. []spawn
  10. {
  11. private["_veh", "_idx"];
  12. _idx = -1;
  13. while {alive player} do
  14. {
  15. if (_idx == -1) then
  16. {
  17. []execVM "admintools\KeyBindings\FunctionKeys.sqf";
  18. []execVM "admintools\KeyBindings\NumberKeys.sqf";
  19. _idx = (vehicle player) addaction [("<t color=""#585858"">" + ("Admin Menu") +"</t>"),"admintools\AdminToolsMain.sqf","",0,false,true,"",""];
  20. _veh = vehicle player;
  21. };
  22. if (_veh != vehicle player) then
  23. {
  24. _veh removeAction _idx;
  25. _idx = -1;
  26. };
  27. Sleep 2;
  28. };
  29. };
  30. tracker = false;
  31. };
  32. waituntil {!alive player ; sleep 2;};
  33. tracker = true;
  34. };
Advertisement
Add Comment
Please, Sign In to add comment