SA-MP Forums Archive
how to calculate - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: how to calculate (/showthread.php?tid=558636)



how to calculate - bigboy81 - 18.01.2015

How to calculate if player not typed 2hour some command,server kick him?


Re: how to calculate - xVIP3Rx - 18.01.2015

Store the second he connects using "gettime()", then check on a timer if "gettime() - The store > 60*60*2" 60*60*2 = 2 hours, also don't forget to equal it to zero every time the players puts a command.