Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- script 1 OPEN clientside
- {
- SetClientOption("wolfmove", GetCVar("samsara_cl_wolfmove"));
- Print(d:GetClientOption(5, "wolfmove")); // Will return nothing, since script is clientside
- }
- script 2 ENTER
- {
- int pln = PlayerNumber();
- int wolfmove = 0, oWolfmove;
- while (1)
- {
- oWolfmove = wolfmove;
- wolfmove = GetClientOption(pln, "wolfmove"); // Returns what the client sent for option "wolfmove"
- if (wolfmove && !oWolfmove) { GiveInventory("WolfensteinMovement", 1); }
- else if (!wolfmove && oWolfmove) { TakeInventory("WolfensteinMovement", 0x7FFFFFFF); }
- Delay(1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement