ijontichy

<stdin>

Feb 10th, 2013
110
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. script 1 OPEN clientside
  2. {
  3. SetClientOption("wolfmove", GetCVar("samsara_cl_wolfmove"));
  4.  
  5. Print(d:GetClientOption(5, "wolfmove")); // Will return nothing, since script is clientside
  6. }
  7.  
  8. script 2 ENTER
  9. {
  10. int pln = PlayerNumber();
  11. int wolfmove = 0, oWolfmove;
  12.  
  13. while (1)
  14. {
  15. oWolfmove = wolfmove;
  16. wolfmove = GetClientOption(pln, "wolfmove"); // Returns what the client sent for option "wolfmove"
  17.  
  18. if (wolfmove && !oWolfmove) { GiveInventory("WolfensteinMovement", 1); }
  19. else if (!wolfmove && oWolfmove) { TakeInventory("WolfensteinMovement", 0x7FFFFFFF); }
  20.  
  21. Delay(1);
  22. }
  23. }
RAW Paste Data