Jump to content

Veo

Members
  • Posts

    12
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Veo's Achievements

Square

Square (6/54)

0

Reputation

  1. Like that "<right name=" resource.vitaStream.http " access="true"></right>" under Default? & thats just inside the vitaStream folder its just a meta.xml. I want to Disable on "http://185.248.140.119:22005/vitaStream/dm.mp3" the Login, with just that dosnt works https://i.imgur.com/zWkie23.png EDIT: With " <right name="general.http" access="true"></right>" Works, but if i do that all have Control of the Server
  2. i think, the problem is that i need Login on "http://185.248.140.119:22005/vitaStream/dm.mp3". i need Login there, how its possible to Disable that?
  3. Dear MTA Community, i hope here can someone Help me. I got the Multigamemode from Sebihunter, theres a Mode DM. I want hear the Map Music, but for that i need Change something in the Configs. He get the Map Music from a HTTP MP3. With from a other Server the IP Works fine. "http://78.46.102.254:22005/vitaStream/dm.mp3" And if i open that URL in my Browser theres no Login Required. But with mine IP is a Login Required "http://185.248.140.226:22005/vitaStream/dm.mp3" and i think its because he cant Login, its possible to Disable the Login or how i can fix that issue?. i hope you understand what i want from you guys xd while true do local xmlNode = xmlFindChild ( metaXML, "file", i) if not xmlNode then break else local copyFile = xmlNodeGetAttribute(xmlNode, "src") --Check if the file has been already added to the meta.xml - Some mappers are so stupid to add scripts 2 times which can fail ;) local metaLineExists = false for i,v in ipairs(temporaryTable) do if v == copyFile then metaLineExists = true end end if metaLineExists == false then if ( string.find(copyFile, ".mp3" ) ) then gMapMusicDM = true fileCopy ( ":"..mapname.."/"..copyFile, ":vitaStream/dm.mp3", true ) else fileCopy ( ":"..mapname.."/"..copyFile, ":vitaMapDM/"..copyFile, true ) table.insert(gMapFilesDM, copyFile) mapNode = xmlCreateChild(mapXML, "file") xmlNodeSetAttribute(mapNode, "src", copyFile) xmlNodeSetAttribute(mapNode, "download", "false") temporaryTable[#temporaryTable+1] = copyFile end end i = i + 1 end end _playSound = playSound function playSound( soundPath, looped ) if looped ~= true then looped = false end soundPath = string.gsub(soundPath, "vita%-online%.eu", "sebihunter%.de") soundPath = string.gsub(soundPath, "vita%.gamers%-board%.com", "sebihunter%.de") -- local sound -- if string.find(soundPath, "song" ) ) or ( string.find(soundPath, "music" ) ) then --triggerEvent ( "onMapSoundReceive",getRootElement(),"http://localhost:22005/vitaStream/dm.mp3") if string.find(soundPath, "http") then triggerEvent ( "onMapSoundReceive",getRootElement(), soundPath) else triggerEvent ( "onMapSoundReceive",getRootElement(),"http://185.248.140.226:22005/vitaStream/dm.mp3") end sound = _playSound( "http://sebihunter.de/serverfiles/race/nothing.wav", true) gMapSounds[#gMapSounds+1] = sound return sound -- else -- sound = _playSound( soundPath, looped) -- gMapSounds[#gMapSounds+1] = sound -- return sound -- end -- return false end
  4. #Fixed by a Friend. But Thanks for Helping guys.
  5. Yes, i do. Here: local x,y = guiGetScreenSize() local sw, sh =guiGetScreenSize() local length = dxGetTextWidth(_MapName,resY(1),fonts["normal"][3]) rectangle = dxDrawRectangle(s*0.008,y*0.957,length + sx*55,y*0.030, tocolor ( 0, 266, 0, 250 ) )
  6. @Erknneto that dosnt Help me for mine code.. someone has maybe Discord? @Edit: If the Map changed, its change the Rectangle to the Map Name length. The Rectangle fits the Map length Name
  7. I want that for all resolutions, Not just for 1360
  8. I can give it to you Tomorrow, Hes using this '_MapName' The Map Name.
  9. @IIYAMA i dont understand it, why that is not working.
  10. Thanks, i tried. but its still the same issue..
  11. Dear MTA:SA Community I have the issue, that i want do with dxGetTextWidth & dxDrawRectangle a Background, for the Map Text, it looks like that. https://i.imgur.com/HjwgkeY.png It works fine in 1920x1080, but if i Change it to 1360x768, then it looks like this https://i.imgur.com/dFflYj5.png Heres some Code: =============== function resY(value) return (value/1080) * y end function resX(value) return (value/1920) * s end =============== local length = dxGetTextWidth(_MapName,resY(1),fonts["normal"][3]) rectangle = dxDrawRectangle(s*0.008,y*0.957,length+55,y*0.030, tocolor ( 0, 266, 0, 250 ) )
×
×
  • Create New...