Jump to content

VTX

Members
  • Posts

    37
  • Joined

  • Last visited

Everything posted by VTX

  1. VTX

    Server size problems

    We have 1982 DM maps currently. The size is that big, because nearly all of them includes songs in it.
  2. Hey guys! We have a problem with our hosting. Our server takes about 50 GB space, and they want us to reduce it. Normally it would take about 18 GB. Our maps are 10 GB and some songs (NOT with the maps) are 8 GB. We have the zipped maps in the 'mods/deathmatch/resources/gamemodes/[race]/[maps]' folder, so the maps get unzipped in the ''mods/deathmatch/resource-cache/unzipped' folder, and they are copied in the ''mods/deathmatch/resource-cache/http-client-files' folder too. So as you see the 10 GB maps are 30 GB now. I know that we can get off 10 GB by uploading the maps unzipped, in a normal folder, but that's still 40 GB. Do you guys have any idea how to reduce the size?
  3. Works great, thank you!!
  4. Hey guys! This is a part of a spectator script I have: setTimer(function() local specList = {} for k,v in ipairs(getElementsByType("player")) do local target = getCameraTarget(v) if target and (target ~= v) then if not specList[target] then specList[target] = {} end specList[target][#specList[target]+1] = getPlayerName(v) end end How can I add the team color to the player's name?
  5. VTX

    Bug report.. Please help!

    Ye, it seemed... Unfortunately it came back again. What should I do now? _____________________________________________________________________________ EDIT: An automatic daily server-restart solves the problem.
  6. VTX

    Bug report.. Please help!

    *I started with checking the server.log but I didn't find any related errors. Then I searched for the clientscript.log but I didn't find it. (I did this on FTP, so I guess that's a bit different, or idk...) *After this, when the problem occured I tried to stop each script one-by-one, and did redo at every stopping, but there weren't any changes. *I checked the race script after these, but I didn't find any function what's able to modify a map. *And finally I downloaded the latest stable version. It seems like the update fixed this issue.
  7. VTX

    Bug report.. Please help!

    On my server, fH- IP: 148.251.40.36:29051 It happens to every player. To say a number: on like every 30. map. Approximately.
  8. VTX

    Bug report.. Please help!

    http://i.imgur.com/i4UhYBl.png Please help...
  9. Finally, I mended it!! Here you go: function getAliveGuys() local alivePlayers = 0 for index,player in ipairs(getElementsByType("player")) do if getElementData(player,"state") == "alive" then alivePlayers = alivePlayers + 1 end end return alivePlayers end function getDeadGuys() local deadPlayers = 0 for index,player in ipairs(getElementsByType("player")) do if getElementData(player,"state") == "dead" then deadPlayers = deadPlayers + 1 end end return deadPlayers end function giveMoneyWinDie ( ) local account = getPlayerAccount ( source ); local playersAlive = getAliveGuys ( 2 ); local playersDead = getDeadGuys ( ); local checkYourPos = playersAlive + 1 local pos = nil; if not (checkYourPos <= 0) then if tonumber ( checkYourPos ) == 1 then pos = 1 else pos = checkYourPos; end if tonumber ( checkYourPos ) == 2 then pos = 2; end if pos == 1 or pos == 21 or pos == 31 then posName = "st"; elseif pos == 2 or pos == 22 or pos == 32 then posName = "nd"; elseif pos == 3 or pos == 23 or pos == 33 then posName = "rd"; else posName = "th"; end if not getElementData ( source, "gotMoney" ) then local money = math.ceil ( getPlayerCount ( ) * 50 / pos ); givePlayerMoney ( source, money ); outputChatBox ( "* You were #abcdef[#ff0000" .. pos .. posName .. "#abcdef]#ffffff and #abcdefearned #ffffff" .. money .. "#00ff00$!", source, 255, 255, 255, true ); setElementData ( source, "gotMoney", true ); if account then setAccountData ( account, "money", tostring ( getPlayerMoney ( source ) ) ); end end end end addEventHandler ( "onPlayerWasted", root , giveMoneyWinDie ) Compare it with the original one, and you'll see what changed.
  10. Hey! It all started like a week ago, max two. On some maps (mostly ones which are near to the San Andreas map) there are 2 objects appearing randomly on the maps. Here's a pic of HTC vol.6 map as an example: http://i.imgur.com/P7BzQLU.png Another map (FakeDeath v7): http://i.imgur.com/MvFRRe1.png http://i.imgur.com/2N6A5I3.png As you see, there's a clear loop going on, but this object just randomly there. It seems to me that it appears on more and more maps as time goes by. The other object is the half of the green bridge from the docks of Los Santos, but I can't show you a pic of that now. I hope you have an idea how to fix this, because it's really irritating.
  11. bump.. Sorry for double-post, but I really need some help in this. It's kinda irritating that everybody gets the last place at every single round.
  12. Oh, yes.. Forgive my mistake, I was a bit inattentive at the morning and didn't see the difference between the two codes. I have this problem now: http://i.imgur.com/QxoaJWp.png It'd be okay that the player earns nothing if he's alone ot the server, but that -10000000 is kinda scary. Please help...
  13. Sorry, it's my fault, but I don't understand what to do. :\
  14. Something is wrong with this: function getAliveGuys ( mode ) if not mode then return end if mode == 1 then pAlive = { }; for _, player in ipairs ( getElementsByType ( "player" ) ) do if ( getElementData ( player, "state" ) == "alive" ) then table.insert ( pAlive, player ); end end return pAlive; elseif mode == 2 then return #pAlive; elseif mode == 3 then if pAlive then pAlive = nil; end return false end end It says i'm always at the last position, and gives mostly 50$.
  15. Yea, I saw that is pretty similar, and I realized that just one line was added. Thanks to both of you then.
  16. Hey guys! I thought it's a common problem, so I searched for it, but didn't find the answer. So here's the script: function someoneReachedHunter(number, sort, model) if sort == "vehiclechange" and model == 425 then outputChatBox ( getPlayerName(source).." #3366FFhas taken the hunter and gets #B30000$500!", getRootElement(), 255, 255, 255, true ) givePlayerMoney ( source , 500 ) end end addEvent("onPlayerPickUpRacePickup",true) addEventHandler("onPlayerPickUpRacePickup",getRootElement(),someoneReachedHunter) function checkHunter(number,sort,model) if sort == "vehiclechange" then if model == 425 then removeEventHandler("onPlayerPickUpRacePickup", getRootElement(), someoneReachedHunter) end end end addEventHandler("onPlayerPickUpRacePickup",getRootElement(),checkHunter) The problem is, when there are more hunter pickups than one in the end of a map, it gives the $500 (and writes the message) as many as I hit an other pickup. So how can I set it to give the money for the first time when the hunter was reached, and disable it when the player hit the pickup again? As you see I tried it with removeEventHandler, but that's worked for only one time, then it disabled the someoneReachedHunter function. Yes, that's obvious...but I don't know how to enable again when a next map starts. But there's probably an easier way.
  17. Hey guys! I have this script: function time () local sWidth,sHeight = guiGetScreenSize() local hours = getRealTime().hour local minutes = getRealTime().minute dxDrawText(hours..":"..minutes,sWidth*0.95486, sHeight*0.01112, sWidth*0.00694, sHeight*0.01112,tocolor(160,160,160,255),0.6,"bankgothic","left","top",false,false,false) end addEventHandler ( "onClientRender", getRootElement(), time ) It works fine, except one thing: It doesn't put 0 before single numbers. For example, if it's '01:05' it shows '1:5'. I'm a beginner in scripting and I have no idea how to fix this, please help.
  18. VTX

    How to hide clouds?

    It works, thank you very much!
  19. VTX

    How to hide clouds?

    Sorry for doublepost, but somebody would do it?
  20. VTX

    How to hide clouds?

    I don't really know how to use it.
  21. Hi! I built a new map, and I would like to hide the clouds. I'm sure it's possible, but I don't know how to do that. Please help me.
×
×
  • Create New...