• Content Count

  • Joined

  • Last visited

  • Days Won


Everything posted by Turbe$Z

  1. Turbe$Z


    Amit te kliens oldalnak írtál, az a szerver oldal, amit pedig szerver oldalnak, az a kliens oldal. Tehát felcserélted őket.
  2. the 'i' value is = "1 2" Maybe this is the problem.. how to convert this only to 2?
  3. This is the code: local normalScoreGorget = 0 local maxMegjelenit = 1 -------------------- for i, row in pairs(scoreboard_rows) do if (i > normalScoreGorget and elem < maxMegjelenit) then elem = elem + 1 if getElementType(row) == "player" then ---DX things here........ elseif getElementType(row) == "team" then ---DX things here........ end end end end bindKey("mouse_wheel_down", "down", function() if normalScoreGorget < #scoreboard_rows - maxMegjelenit then normalScoreGorget = normalScoreGorget + 1 end end ) bindKey("mouse_wheel_up", "down", function() if normalScoreGorget > 0 then normalScoreGorget = normalScoreGorget - 1 end end ) This is the bug: how can i fix this?.. :s
  4. I created a scoreboard script, and the playerlist working fine, but i dont know how to insert teams, and team players after the playerlist, like in the default scoreboard script.. :s Anyone can help me?
  5. function DestructionDerby:handleFinishActivePlayer(player) local timePassed = self:getTimePassed() local rank = self:getPlayerRank(player) if rank >= 2 then triggerClientEvent("winnerMessage",resourceRoot,"Winner!!!", getPlayerNametagText(player)) triggerEvent("plusz1", player) end finishActivePlayer(player) if rank and rank > 1 then triggerEvent( "onPlayerFinishDD",player,tonumber( rank ) ) end local activePlayers = getActivePlayers() triggerEvent("onPlayerDeadInRace",getRootElement(),rank,player) if #activePlayers == 1 then if (not isMapDM()) then if getResourceState( getResourceFromName( "podium" )) ~= "running" then triggerClientEvent("winnerMessage",resourceRoot,"Winner!!!", getPlayerNametagText(activePlayers[1])) else triggerClientEvent("winnerMessage",resourceRoot,"","") setElementHealth(activePlayers[1],0) end end if getElementModel(getPedOccupiedVehicle(activePlayers[1])) == 425 then setElementHealth(activePlayers[1],0) end triggerEvent( "onPlayerWinDD",activePlayers[1] ) end end i putted in this function, but does not working at all.. :s
  6. I tried trigger from destructionderby.lua, but not solve it the problem.. :s
  7. Client: function winnerMessenger ( text, playerName) win.text = text win.name = playerName removeEventHandler("onClientRender",root,winMsg) addEventHandler("onClientRender",root,winMsg) triggerServerEvent("plusz1", localPlayer, getLocalPlayer) end addEvent("winnerMessage",true) addEventHandler("winnerMessage",getRootElement(),winnerMessenger) Server: function asdasd() if getPlayerRank( source ) ~= 1 then return end local gyozelmek = getElementData(source,"Győzelmek") or 0 setElementData(source, "Győzelmek", gyozelmek + 1 ) givePlayerMoney(source,2) outputChatBox("#FFffFFAmiért megnyerted a kört, kaptál #00FFFF'2' coint!",source,r,g,b,true) end addEvent("plusz1", true) addEventHandler("plusz1", root, asdasd) And when the win msg appear, the setelementdata add 1 win point, and money for everybody.. How to fix this? I want add win point and money only to the winner, not everybody...
  8. I want play songs from youtube, but i don't know how to use a converter to this.. Anyone can send me a WORKING link like this: http://www.convertmp3.io/fetch/?video=..ytlink..? Sorry for my bad english...
  9. i looking for a race gamemode, which have a animation while the countdown run, when 3 then set the camera target before the local player car, when 2 then set the camera target another position... where can i download thi gamemode? or how to make this? sorry for my very-very bad english :c
  10. Where can i download a good inventory script for rp server?
  11. I want a good radar to my server, but i cannot find. And I searched on community, but i cannot find good too.. Anyone can send me a website, or anything from where can i download good radar(s)? Thank you!
  12. i want add this mod: http://www.gtainside.com/en/sanandreas/mods/8517-world-trade-center-mod-v0-3/ to my mta server, but i don't know, how to add. :c anyone can help me?
  13. What wrong with this? hudS.bgX = scrX - 60 -- X position of background hudS.bgY = 4 -- Y position of background hudS.bgW = 52 -- background width (img size in pixels) hudS.bgH = 52 -- background height (img size in pixels) hudS.fX = scrX - 275 -- X position of fill hudS.fY = 51 -- Y position of fill hudS.fW = 52 -- fill width (img size in pixels) hudS.fH = 52 -- fill height (img size in pixels) dxDrawImage(hudS.bgX-60, hudS.bgY, hudS.bgW, hudS.bgH, "shield_bg.png") local currHeight2 = 66 / 100 * getPedArmor ( getLocalPlayer() ) dxDrawImageSection(hudS.fX+163, hudS.fY-39, hudS.fW, currHeight2, 0, 0, hudS.fW+65, currHeight+195, "asda.png") and this is the problem: how to fix?
  14. Sorry, but you can send me a 'long-shadow' image about oxygen? I can not find anywhere
  15. thanks and i can add oxygen, and armor?
  16. i tried with the example code, but does not work well too addEventHandler('onClientRender', root, function() local health = getElementHealth(localPlayer) local myIconHeight = 120 --pixels local vSize = myIconHeight / 100 * health dxDrawImageSection(400, 200, 64, 64, 0, 0, myIconHeight, vSize, 'egyedi/hp_full.png') dxDrawImage(400, 300, 128, 128, 'egyedi/hp_full.png') end)
  17. how can i make this to dxDrawImageSection?