Jump to content

JoZeFSvK

Members
  • Posts

    201
  • Joined

  • Last visited

Everything posted by JoZeFSvK

  1. Hey i wanna create camera matrix but dont work i dont know where is problem. nacitavanie = 0 createPed(40, 173.35345, -1320.99438, 79.13128) function load() nacitavanie = nacitavanie + 1 if getPedOccupiedVehicle(localPlayer) then local x, y, z = getElementPosition(getPedOccupiedVehicle(localPlayer)) setElementPosition(getPedOccupiedVehicle(localPlayer), x, y, z) end if nacitavanie > 3350 then setCameraMatrix(-437.14282226563 + nacitavanie, -1320 + nacitavanie - 3350, 80, 2580, -1628.5712890625, -300, 0, 70) else setCameraMatrix(-437.14282226563 + nacitavanie, -1320, 80, 2580, -1628.5712890625, -300, 0, 70) end end addEvent( "onTravelScreenStart", true ) addEventHandler( "onTravelScreenStart", getRootElement(), load )
  2. Device work equipment is working properly. i update driver and now work
  3. when i dont have eth driver i dont see servers i cant find
  4. Hmm when i download and instal Ethernet driver windows 8 my internet dont work .. problem "problem 651: the modem (or other connection device) has reported an error" i dont know where is problem when i uninstal Ethernet driver my internet again work
  5. http://pastebin.com/XngiL5Ed
  6. LoL ? I thought lua uncompliter don't exist
  7. thank you for all your reply
  8. Hey i create info and i have problem i dont see message and i dont know what i have use addEventHandler("onMapStart", function dmgm() dxDrawColorText("#ffffffHELLO WORLD Ghostmode is #00ff00ENABLED#FFFFFF!",750,y/20,574.0,20.0,tocolor(200,0,0,255),1,"default-bold","left","top",false,false,false) dxDrawImage (730,y/20,16,16,"icon/icon.png",0,-120) end addEvent("onMapStarting",true) addEventHandler("onMapStarting", dmgm) addEvent("onMapStart",true)
  9. when i write cache="false"/> will not be downloaded client ?, but player have slow internet connection and will try stole ? its as "fileDelete" ... on end script ?. or this dont download client ?
  10. Hey i wanna have ask, i wanna security for my script against thieves. i try create zip and password it but i see in server console "could not parse meta" so i unpassword meta and console dont say but script dont work, How i save my script from thieves?
  11. Thank you, i need this ^^, i use local text= ... therefore they i search on wiki, but thank you script work, i wish you good day
  12. Hey i dont know how use "local wtf= i wanna here text function createText ( ) local nazov = HELLO WORLD dxDrawText( nazov,sw/2-350, sh/2-75, 700, 150, tocolor ( 255, 0, 0, 255 ), 1.02, "defalut-blod" ) end addEvent( "onTravelScreenStart", true, createText ) it is good ? and dx code function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, alignX, alignY) if alignX then if alignX == "center" then local w = dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font) ax = ax + (bx-ax)/2 - w/2 elseif alignX == "right" then local w = dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font) ax = bx - w end end if alignY then if alignY == "center" then local h = dxGetFontHeight(scale, font) ay = ay + (by-ay)/2 - h/2 elseif alignY == "bottom" then local h = dxGetFontHeight(scale, font) ay = by - h end end local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor(tonumber("0x"..col:sub(1, 2)), tonumber("0x"..col:sub(3, 4)), tonumber("0x"..col:sub(5, 6)), 255) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) ax = ax + w color = tocolor(tonumber("0x"..col:sub(1, 2)), tonumber("0x"..col:sub(3, 4)), tonumber("0x"..col:sub(5, 6)), 255) end last = e + 1 s, e, cap, col = str:find(pat, last) end if last <= #str then cap = str:sub(last) local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) end end function dxDrawingColorText(str, ax, ay, bx, by, color, alpha, scale, font, alignX, alignY) if alignX then if alignX == "center" then local w = dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font) ax = ax + (bx-ax)/2 - w/2 elseif alignX == "right" then local w = dxGetTextWidth(str:gsub("#%x%x%x%x%x%x",""), scale, font) ax = bx - w end end if alignY then if alignY == "center" then local h = dxGetFontHeight(scale, font) ay = ay + (by-ay)/2 - h/2 elseif alignY == "bottom" then local h = dxGetFontHeight(scale, font) ay = by - h end end local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor(tonumber("0x"..col:sub(1, 2)), tonumber("0x"..col:sub(3, 4)), tonumber("0x"..col:sub(5, 6)), alpha) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) ax = ax + w color = tocolor(tonumber("0x"..col:sub(1, 2)), tonumber("0x"..col:sub(3, 4)), tonumber("0x"..col:sub(5, 6)), alpha) end last = e + 1 s, e, cap, col = str:find(pat, last) end if last <= #str then cap = str:sub(last) local w = dxGetTextWidth(cap, scale, font) dxDrawText(cap, ax, ay, ax + w, by, color, scale, font) end end
  13. here is link http://pastebin.com/B0q7AK2i
  14. OH NOOO :!!!! i dont see servers ! i see some servers but i write server i dont see and this server is online and i must see it
  15. ok i donwload new crack and version 1.0 and work
  16. agrh i see now my gta dont work when i load game i see program has stopped working will problem in crack ?
  17. Hey i instal gta and mta and when i first start mta client work, but when i start mta again i see message "may not have launched correctly do you want terminated it ?" or "another instance of mta is alreasy running. do you want terminate it? " but i start task manager i dont see running mta or gta. when i click to "yes" (terminate) and i see message ( unable to terminate gtasa. if the problem persists, please restart your computer. and i dont wanna restart again again computer when i close mta .who know where will problem ?
  18. JoZeFSvK

    info sound

    or ... i try create draw info messages but i have problem reklamy = {"Reklama cislo 1", "Reklama cislo 2", "Reklama cislo 3"} function getAds () cislo = math.random(1, #reklamy) dxDrawColorText("ffffff"..reklamy[cislo], 750,y/15,574.0,50.0,tocolor(200,0,0,255),1,"default-bold","right","top",false,false,false) dxDrawImage (730,y/15,16,16,"icon/info.png",0,-120) end setTimer(getAds, 1000, 0) setTimer ( function ( ) removeEventHandler ( "getAds", root, reklamy ) end ,6000,1 ) end ) function dxDrawColorText(str, ax, ay, bx, by, color, scale, font, left, top, clip, wordbreak, postGUI) local pat = "(.-)#(%x%x%x%x%x%x)" local s, e, cap, col = str:find(pat, 1) local last = 1 while s do if cap == "" and col then color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end if s ~= 1 or cap ~= "" then local w = dxGetTextWidth(cap, scale, font) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font ) ax = ax + w color = tocolor( tonumber( "0x"..col:sub( 1, 2 ) ), tonumber( "0x"..col:sub( 3, 4 ) ), tonumber( "0x"..col:sub( 5, 6 ) ), 255 ) end last = e + 1 s, e, cap, col = str:find( pat, last ) end if last <= #str then cap = str:sub( last ) local w = dxGetTextWidth( cap, scale, font ) dxDrawText( cap, ax, ay, ax + w, by, color, scale, font, left, top, clip, wordbreak, postGUI ) end end
  19. JoZeFSvK

    info sound

    ok i fix problem lock topic
  20. JoZeFSvK

    info sound

    i know, i wanna that drawing time remained undamaged and play sound only 1 sec, but this song play until is drawing time no end. i need end sound beep rather than ended drawtime.Just make don't it repetition (sound)
  21. JoZeFSvK

    info sound

    Hey all i wanna edit "infobox" but i have problem with beep message shows 6000,1 but i hear beep arround when message to hide. i try write under beep.mp3 timer but dont work i show on cheange nick drawtext and position function renderPlayerNick ( ) dxDrawColorText("#ffffff".. messageNick,750,y/15,574.0,50.0,tocolor(200,0,0,255),1,"default-bold","right","top",false,false,false) dxDrawImage (730,y/15,16,16,"icon/nick.png",0,-120) playSound("icon/join.mp3",false) setSoundVolume(sound, 0.9) setTimer ( setInfoLabel, 100, 1) -- timer to stop sound sound have 1 sec and i wanna see only 1x and this sound will hear all players on server end and message addEventHandler ( "onClientPlayerChangeNick", root, function ( oldNick, newNick ) messageNick = "#ffffff" ..oldNick.. " #ffffffis now known as #ffffff" ..newNick addEventHandler ( "onClientRender", root, renderPlayerNick ) setTimer ( function ( ) removeEventHandler ( "onClientRender", root, renderPlayerNick ) end ,6000,1 ) end )
  22. i try write this but i dont know .. local dx = dxDrawText(g_GameOptions.randommaps and 'Next map starts in or 'Vote for next map starts in:' " )'default-bold',255,255,255) i must use ("..g_GameOptions.randommaps and.. "Next map starts in" or "Vote for next map starts in:" ....... or this is only in outputchatbox ?
  23. Hey i wanna create dx tex but i have problem function RaceMode.endMap() if stateAllowsPostFinish() then gotoState('PostFinish') local text = g_GameOptions.randommaps and 'Next map starts in:' or 'Vote for next map starts in:' Countdown.create = dxDrawText(5, RaceMode.startNextMapSelect, text, 255, 255, 255,'default-bold', 1, 2.8):start() triggerEvent('onPostFinish', g_Root) end end this is good ? or Countdown.create = dxDrawText(5, RaceMode.startNextMapSelect, text, 255, 255, 255,'default-bold', 1, 2.8):start()
×
×
  • Create New...