Jump to content

kalyn

Members
  • Posts

    38
  • Joined

  • Last visited

Posts posted by kalyn

  1. I am understanding what you say and I was thinking the same would happen in my case but I wanted to be sure before making this call, I have the funds I need to buy a proper server and I havea location where I don't need to pay any electricity bills, so I think that a server would do....

    probably i'll return to develop on this but now I am too tired, thanks for the help.

  2. Hi guys, I have a PC that I want to transform in my own hosting server.

    Specs:

    - 2.50 Ghz QuadCore CPU

    - 2 GB RAM (currently) i want to add 2 gb more (maximum amount for that motherboard)

    - 250 GB HDD

    So I was wondering how many slots I can host with this settings considering that I want to make an RPG server with pretty much all the stuff that it needs (jobs, factions, turfs, etc.)

    I must add that I want to use this computer only for hosting the server, MYSQL db, and website/forum and I was thinking to use Linux as OS.

    And if some of you knows how much power does the server consumes in 1 month in money aproximately?! I am asking this because I want to think on various aspects before starting this project so I can make an ideea what a server needs.

    Thanks a lot!

  3. Well, it says "Using Squid to speed up resource downloads" but in the first paragraph it says "Squid is a web cache that, in this case, makes it easy to mirror your resource directory. This means you can host your resources on another web server, but you don't have to manually copy the files there. Setting this up takes about 15 minutes or so - if everything goes well",

    so I'm thinking it's used for web server uploading.

    Oh, thanks a lot for the suggestion :D

    Can you give me an example of a host that I can use?!

  4. well, if you're using a http download url then the server compares the resources on your local host and the files on the http folder to see if they're the same, if you make any changes to the files/resources on the local host, you could use this program I found on the wiki: https://wiki.multitheftauto.com/wiki/Usi ... _downloads[/quote

    But what is the use for the program, to send downloads faster or to make the link betwen your host and the computer, or to update the resources that you have changed.....?!?

  5. better internet, both them and you

    I don't want to be rude or not polite but if you don't know don't botther to answer, in the server cafg file you get "httpdwnloadurl" and there says that you can host your client files outside your computer on a server file host so you can send them to players faster, I foun that after posting this thread, the only problem is taht you'll have to make your server stable and don't make changes on it after you upload youre resources and all will be fine....

  6. You forgot to show us what you tried - the code. Without the code, the only thing I can tell you is use setAccountData to save data.

    After this code that is working:

    function onPlayerQuit() 
          local playerAccount = getPlayerAccount(source) 
          if (playerAccount) then 
                local playerMoney = getPlayerMoney(source) 
                setAccountData(playerAccount, "player.money", playerMoney) 
          end 
    end 
    addEventHandler("onPlayerQuit", getRootElement(), onPlayerQuit) 
      
    function onPlayerLogin() 
          local playerAccount = getPlayerAccount(source) 
          if (playerAccount) then 
                local playerMoney = getAccountData(playerAccount, "player.money") 
                if (playerMoney) then 
                      setPlayerMoney(source, playerMoney) 
                end 
          end 
    end 
    addEventHandler("onPlayerLogin", getRootElement(), onPlayerLogin) 
    

    I've tryed this:

    function onPlayerQuit() 
          local playerAccount = getPlayerAccount(source) 
          if (playerAccount) then 
                local Score = getScore(source) 
                setAccountData(playerAccount, "player.score", Score) 
          end 
    end 
    addEventHandler("onPlayerQuit", getRootElement(), onPlayerQuit) 
      
    function onPlayerLogin() 
          local playerAccount = getPlayerAccount(source) 
          if (playerAccount) then 
                local Score = getAccountData(playerAccount, "player.score") 
                if (playerMoney) then 
                      setScore(source, Score) 
                end 
          end 
    end 
    addEventHandler("onPlayerLogin", getRootElement(), onPlayerLogin)) 
    

    I have also tryed whyt PlayerScore instead of just score but none worked, the problem is that I don't get where is the problem or what I've done wrong....

    The codes were written in the gamemode.lua and not as a resource.

  7. Hi guys!

    I have tryied again and again to make the player Score saveable on player quit but I had no luck, can anyone give me a little script that makes that thing?! I must add that I have Login Panel so every player have an account, or can play as a guest (the score must not be saved for guests only for registered players)

    Thanks!

  8. function rhinohit(weapon, ammo, ammoInClip, hitX, hitY, hitZ, hitElement) 
    if getElementType(hitElement)=="vehicle" and getElementModel (hitElement) == 432  then 
        setElementHealth (hitElement, getElementHealth(hitElement)-50) 
        end 
    end 
    addEventHandler("onClientPlayerWeaponFire", root, rhinohit) 
    

    doesn't work, the tank after 1 rocket explodes but when is a player in becomes invulnerable and whit other fireweapons you can't do nothing against it.....

  9. You could make a custom script which will lower tank health when player shoots a weapon.

    onClientPlayerWeaponFire -- The event for when a player fires a weapon.

    getElementType -- To check if the hit element is a vehicle. 
    getElementModel -- To check if the hit vehicle is a "Rhino". 
    setElementHealth -- To lower it's health. 
    

    the problem is the tank is invulnerable i shoot about 20 rockets to him and the healt was at 100% and I need the tank to not blow the cars when he touches them, the only moment when the tank was losing healt was when you colide whit some objects...

  10. *sigh*

    I have another question, how to make modloader to start sendig the mods only after the player spawns, so the player can play on the server too before the mods are downloaded, or to download each mod at a time so the player don't get bored waiting to download 300MB for example , or if I can make both of dese it will be great :)

    Thanks!

  11. Maybe reïnstal gta or check if you have mods running(on that object).
    \

    the object is the fence around area51 because there I created the Army base and it was closed, but I have like 74 - 75 resources running, idk, if that's the problem....

    My computer specifications are:

    Windows 7

    Intel 2 Core Quad Q8300 @ 2,50 GHZ (4 CPU's)

    3 GB RAM

    250 GB HDD

    On-Board Video Graphics NVidia GeForce 7100/ nForce 630i 256MB

    And the down/up speed on aprox 800km's is:

    2125278194.png

  12. Try to put
    setOcclusionsEnabled( false ) 
    

    after removeElementModel. So the final result will be:

    function remove( resourcename ) 
        removeWorldModel(16094,118.60,135.17442,1941.87561,19.32008) 
        setOcclusionsEnabled( false ) 
    end 
    addEventHandler( "onResourceStart", resourceRoot, remove ) 
    

    Is the same, it's like the FPS goes up and down dramatically......:-?? dunno what's the problem to resolve it.

  13. In my Server i got real cars i mean mods skin mods weapon mods car mods tuning mods and that

    and when some players join they download it and when they reconnect they got again to download....WHY?

    How i can FIX THAT??PLS Help ME!!

    If u use modloader please read the README file, there it says that you will have to rename you modds so when other players reconect they don't need to download them anymore. The problem is when the player logs on another server that has no mods and the client redownload the original cars, and when he enters again in yours he have to download the files again because they aren't the same....

    Also, it's highly reccomended to change the resource name! If two servers use this resource, and you play on both, you will have to download the resource everytime you join the other server. So, this is easier for players, and saves you bandwidth usage.

    If you don't change the name, you will get notified anyway

    So rename the vehicles from the folder and rename (whit the same name) them also from the "data.lua" file.

  14. Hi guys!

    Recently I downloaded the ModLoader so I can add some custom skins/vehicles/players. I don't know if ModLoader is the problem or this https://forum.multitheftauto.com/viewtopic.php?f=91&t=46805&sid=11272c796e17dc8628f732cba31b3d4c but since I made this two changes my server laggs (for fraction of seconds only depends how ofted the it do the lagg), even I lag and my server is on my computer, if it's the modLoader is there something that I can do, a streamer or something, begause the lagg is not huge, just a little but enough to get annoyed in 2-3 mins of play.

    My computer specs are:

    Intel 2 Core Quad Q8300 @ 2,50 GHZ (4 CPU's)

    3 GB RAM

    250 GB HDD

    On-Board Video Graphics NVidia GeForce 7100/ nForce 630i

    And the down/up speed on aprox 800km's is:

    2125278194.png

×
×
  • Create New...