local active = false
function main()
if not isSampLoaded() or not isSampfuncsLoaded() then return end
sampRegisterChatCommand('adrugs', function()
active = not active
if active then
sampAddChatMessage("on", -1)
else
sampAddChatMessage("off", -1)
end
end)
while true do
wait(500)
if active then
sampSendChat('/usedrugs 3')
end
end
end