Skip to content

Commit

Permalink
⚡ Improved perfomance
Browse files Browse the repository at this point in the history
  • Loading branch information
Akionka committed Dec 28, 2019
1 parent f0021b6 commit 1df39a8
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions checker.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
script_name('Checker')
script_author('akionka')
script_version('2.2.5')
script_version('2.2.6')
script_version_number(21)
script_moonloader(27)

Expand Down Expand Up @@ -138,8 +138,7 @@ function sampev.onSendClientJoin()
--[[
Обнуление онлайн пользователей, загруженных пользователей после (ре)коннекта.
]]

loadUsers()
lua_thread.create(loadUsers)
end


Expand All @@ -149,16 +148,15 @@ function sampev.onPlayerJoin(id, color, isNPC, nickname)
Слава богу луа достаточно шустрый и почти не лагает.
]]

addUser(id, nickname)
lua_thread.create(addUser, id, nickname)
end


function sampev.onPlayerQuit(id, reason)
--[[
Исключение из списка онлайн пользователей покинувшего сервер пользователя.
]]

removeUser(id)
lua_thread.create(removeUser, id)
end

function addUser(id, nickname)
Expand Down

0 comments on commit 1df39a8

Please sign in to comment.