Exeus
Advanced OT User
- Joined
- Oct 8, 2012
- Messages
- 859
- Reaction score
- 198
Let's assume that I'd want to use something like this:
1: How to create those waits?
2: How hard it'd affect CPU usage or generally "server's" performance?
(ik ik, kinda specs dependent but let's ignore it)
3: Is there any other and better way to save players' state "on the fly"?
Lua:
while(true)
do
local t = Game.getPlayerCount()
local arr= Game.getPlayers()
for i=1,t
do
player = arr[i]
player:save(player)
wait(1000)
end
wait(900000)
end
1: How to create those waits?
2: How hard it'd affect CPU usage or generally "server's" performance?
(ik ik, kinda specs dependent but let's ignore it)
3: Is there any other and better way to save players' state "on the fly"?