SHARE
TWEET

<stdin>

ijontichy Feb 10th, 2013 80 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
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top