• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lottery tfs 1.2

president vankk

Web Developer & AuraOT Owner
Joined
Jul 10, 2009
Messages
5,719
Solutions
9
Reaction score
339
Hi folks, it's stupid but I don't know, so what I want is on this script players with access (gamemaster, community managers, administradors) can't win the lottery.

Thanks for the support.
 
I don't know the better way, but my idea...
you create a function that do all stuff, inside you check if the player have access, if have access you call the function again, like recursion, when the function find a player without access he will gain the reward e.e
 
is how I said "inside the function that you will create you will check if have access or not
like this:
Code:
if winner:getGroup():getAccess() then
       -- call function again
       return true
end
 
Back
Top