Advertisement
Guest User

Untitled

a guest
Jul 24th, 2016
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.17 KB | None | 0 0
  1. if (getplayerUID player in ["76561198030072519","76561198122912324","76561198208681004"]) then
  2. {
  3. player addAction ["<t color='#0EB7F0'>Schwimmen</t>", {
  4. []spawn {
  5. if (player getvariable "swim") exitwith {};
  6. player setvariable ["swim",true,true];
  7. _pfeil1 = "Sign_Arrow_Large_F" createvehicle position player;
  8. _pfeil1 attachTo [player, [0, 0.2, 2.7] ];
  9. _stab = "Land_Camping_Light_F" createvehicle position player;
  10. _stab attachTo [player, [0, 0.2, 2.71] ];
  11. while {player getvariable "swim"} do {if (animationState player != "AswmPercMrunSnonWnonDf") then {player playmove "AswmPercMrunSnonWnonDf"};};
  12. };
  13. }];
  14.  
  15. player addAction ["<t color='#FF0000'>Stop</t>", {
  16. [] spawn {
  17. if (!(player getvariable "swim")) exitwith {};
  18. player setvariable ["swim",false,true];
  19. player switchmove "";
  20. {
  21. deletevehicle _x;
  22. }foreach nearestObjects[player,["Sign_Arrow_Large_F","Land_Camping_Light_F"],5];
  23. };
  24. }];
  25.  
  26. player addaction ["<t color='#FF0000'>Menü entfernen</t>",{[]spawn {if (player getvariable "swim") exitwith {}; removeallactions player;};}];
  27. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement