proc/r_time(usrip,oppip)
set background = 1
RTIME += "[usrip] - [oppip]"
var/timer = 18000
while("[usrip] - [oppip]" in RTIME)
timer--
if(!timer||timer<0)
RTIME -= "[usrip] - [oppip]"
sleep(1)
return
Problem description:
This is a code im using to prevent players from feeding wins to other players for a ranking system. When they start a match it runs this. Adds both of their IP's to a list. Keeps them on the list until the timer is done. And then removes them. While they're on this list they cant have a ranked match against each other.
Sleep runs in 10ths of a second as far as I'm aware... so a timer of 18000 here should run for 30 minutes right? It seems to be running for approximately 12 minutes though.
Am I overlooking something here?
My fps is currently set for 14. That hasn't changed in a long time.