local sampev = require 'lib.samp.events'
function main()
sampRegisterChatCommand('active', status)
while true do
wait(0)
end
end
function status()
state = not state
if state then
print('activated')
else
print ('deactivated')
end
end
function sampev.onSetRaceCheckpoint(type, pos, nextpos, size)
if pos.x == [[координата по иксу]] and pos.y == [[по игрику]] and state then
return false
end
end