function main()
if not isSampLoaded() then return end
while not isSampAvailable() do wait(3500) end
sampRegisterChatCommand("mycmd", function()
active = not active
end)
sampAddChatMessage('Script state {FFFFFF}is '..(active and '{B63A65}ENABLED{666666}!' or '{B63A65}DISABLED{666666}!'), 0x666666)
end