added ignore AFK

update
rubin 2 years ago
parent 0caf780e5a
commit a99819b344
  1. 8
      mafia-tools.lua

@ -6,6 +6,7 @@ sampev = require 'samp.events'
inicfg = require "inicfg"
dlstatus = require("moonloader").download_status
vkeys = require "vkeys"
live = 0
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
@ -26,7 +27,10 @@ function main()
lua_thread.create(antiflood.loop)
lua_thread.create(invite_helper.loop)
lua_thread.create(get_guns.loop)
wait(-1)
while true do
wait(0)
live = os.time()
end
end
-->> MENU DIALOG
@ -1311,6 +1315,7 @@ events.onShowDialog = {
-->> EVENTS
function sampev.onServerMessage(color, message)
if os.time() - live < 3 then
timer_2min.onServerMessage(color, message)
ammo_timer.onServerMessage(color, message)
invite_helper.onServerMessage(color, message)
@ -1319,6 +1324,7 @@ function sampev.onServerMessage(color, message)
return result
end
end
end
function sampev.onSendPickedUpPickup(id)
local X, Y, Z = getCharCoordinates(PLAYER_PED)
local ammo = {

Loading…
Cancel
Save