script_name('AntiCasino')
script_author('FLOPPOV') -- 2016.1967773438, 1017.9692993164, 996.875
require ("lib.moonloader")
local key = require('vkeys')
local rkeys = require('rkeys')
local hook = require('lib.samp.events')
local imgui = require('imgui')
imgui.HotKey = require('imgui_addons').HotKey
local encoding = require('encoding')
encoding.default = 'CP1251'
u8 = encoding.UTF8
local bool = true
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
sampAddChatMessage("{FF0000}Anti{FFFFFF}Casino started.", -1)
sampRegisterChatCommand("anti", casino)
while true do wait(0)
local mx, my, mz = getCharCoordinates(PLAYER_PED)
if mx == 2016.20 and my == 1017.96, mz == 996.88 then
if bool then
print("+")
bool = false
else
bool = true
end
end
end
end
function casino()
local positionX, positionY, positionZ = getCharCoordinates(PLAYER_PED)
local str = positionX .. ", " .. positionY .. ", " .. positionZ
sampAddChatMessage(str, -1)
end