add gs
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
-- Helper function to throttle based on player Id:
|
||||
return function(throttle, userId)
|
||||
assert(type(throttle) == "number")
|
||||
assert(type(userId) == "number")
|
||||
|
||||
-- Determine userRollout using last two digits of user ID:
|
||||
-- (+1 to change range from 0-99 to 1-100 as 0 is off, 100 is full on):
|
||||
local userRollout = (userId % 100) + 1
|
||||
return userRollout <= throttle
|
||||
end
|
||||
Reference in New Issue
Block a user