ijontichy

<stdin>

Feb 10th, 2013
121
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

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×