- 62
- 0
- Версия MoonLoader
- .026-beta
Lua:
[/B]
function main()
if not isSampfuncsLoaded() or not isSampLoaded() then return end
while not isSampAvailable() do wait(100) end
sampRegisterChatCommand('osk', osk)
sampRegisterChatCommand('ch', ch)
sampRegisterChatCommand('bh', bh)
sampRegisterChatCommand('oska', oska)
sampRegisterChatCommand('opra', opra)
sampRegisterChatCommand('afrag', afrag)
sampRegisterChatCommand("sadmin", function()
sampShowDialog(123, "{00ffff}Для админов Sucre by {ff0000}@stalinsmods", "{00ffff}Команда.\t{00ffff}Описание.\n{00ffff}/osk\t {00ffff}Оскорбление(30м).\n{00ffff}/bh\t {00ffff}Банихоп.\n{00ffff}/ch\t {00ffff}Cheat(30д).\n{00ffff}/oska\t {00ffff}Оск Админа(360м).\n{00ffff}/afrag\t {00ffff}Антифраг.\n{00ffff}/opra\t {00ffff}Oпра(30д).", "Ок", "Ок", 5)
end)
end
function osk(id)
if #id == 0 then
sampAddChatMessage('{ffffff}/osk [id]', -1)
else
sampSendChat('/mute '..id..' 30 Оскорбление.')
end
end
function ch(lo)
if #lo == 0 then
sampAddChatMessage('{ffffff}/ch [lo]', -1)
else
sampSendChat('/ban '..lo..' 30 Cheat.')
end
end
function bh(ll)
if #ll == 0 then
sampAddChatMessage('{ffffff}/bh [ll]', -1)
else
sampSendChat('/jail '..ll..' 10 Банихоп.')
end
end
function oska(kk)
if #kk == 0 then
sampAddChatMessage('{ffffff}/oska [kk]', -1)
else
sampSendChat('/mute '..kk..' 360 Оскорбление Администратора.')
end
end
function afrag(ki)
if #ki == 0 then
sampAddChatMessage('{ffffff}/afrag [ki]', -1)
else
sampSendChat('/jail '..kk..' 120 Антифраг.')
end
end
function opra(ti)
if #ti == 0 then
sampAddChatMessage('{ffffff}/opra [ti]', -1)
else
sampSendChat('/Ban '..ti..' Опра капт.')
end
end
[B]
помогите пж