Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require "lib.moonloader"
- script_name('Mr.Ghetto')
- script_author('Escobar')
- local scr = thisScript()
- local Active = false
- local tag = '{000000} [ Mr. Ghetto ] {FFFFFF}'
- function main()
- if not isSampLoaded() and not isSampfuncsLoaded then return end
- while not isSampAvailable() do wait(0) end
- sampRegisterChatCommand('nwh', command)
- font = renderCreateFont("Tahoma", 8, 0x4)
- sampAddChatMessage(tag..'{363636} Activation: Q - Сбив, X - Нарко, /nwh - Вх нарко, /inv - Передача банданы. {0a0a0a} Author: Escobar')
- while true do
- wait(0)
- if wasKeyPressed(VK_Q)and not sampIsCursorActive()then
- sampSendChat("1")
- end
- if wasKeyPressed(VK_X)and not sampIsCursorActive()then
- sampSendChat("/usedrugs 3")
- if text:find('У вас нет столько наркотиков!') and act then
- end
- if text:find('Пока ты в больнице, ты не можешь использовать наркотики!') and act then
- end
- printStringNow('8', 1000)
- wait (1000)
- printStringNow('7', 1000)
- wait (1000)
- printStringNow('6', 1000)
- wait (1000)
- printStringNow('5', 1000)
- wait (1000)
- printStringNow('4', 1000)
- wait (1000)
- printStringNow('3', 1000)
- wait (1000)
- printStringNow('2', 1000)
- wait (1000)
- printStringNow('1', 1000)
- wait (1000)
- printStringNow('0', 1000)
- end
- end
- if Active == true then
- for i = 0, 1000 do
- object = sampGetObjectHandleBySampId(i)
- if object > 0 then
- modelId = getObjectModel(object)
- if modelId == 1575 or modelId == 1576 or modelId == 1577 or modelId == 1578 or modelId == 1579 then
- result, positionX, positionY, positionZ = getObjectCoordinates(object)
- if result == true and isPointOnScreen(positionX, positionY, positionZ, 0.0) then
- posX, posY, posZ = getCharCoordinates(PLAYER_PED)
- wposX, wposY = convert3DCoordsToScreen(positionX, positionY, positionZ)
- wpos2X, wpos2Y = convert3DCoordsToScreen(posX, posY, posZ)
- renderDrawLine(wposX, wposY, wpos2X, wpos2Y, 1, 0x88000000)
- renderDrawPolygon(wposX, wposY, 3, 3, 7, 0, 0xba000000)
- text = string.format("{0a0a0a}[WH] {ffffff}Закладка")
- wposX = wposX + 5
- wposY = wposY - 7
- renderFontDrawText(font, text, wposX, wposY, 0xcac1f4c1)
- end
- end
- end
- end
- end
- end
- function command()
- Active = not Active
- if Active == true then
- sampAddChatMessage("{151719}[Narko WH] Активирован!", 0xAAFFFFFF)
- else
- sampAddChatMessage("{151719}[Narko WH] Деактивирован!", 0xAAFFFFFF)
- end
- end
- sampRegisterChatCommand('inv', function()
- sampSendChat('/me передал бандану')
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement