Jump to content

Andre9977

Members
  • Posts

    43
  • Joined

  • Last visited

Posts posted by Andre9977

  1. I once read a similiar topic about guiGetScreenSize which wanted to place a GUI in the middle of the screen. Had to divide the height and width of the screen and then subtract GUI's height and width divided by 2.

    middle height GUI = (screen height)/2 - (GUI's height)/2

    middle width GUI = (screen width)/2 - (GUI's width)/2

    That starts making some sense.

    But seeing that you don't want to have it in the center. I'm sure you saw the dxDrawText wiki page. There you see this:

    local screenWidth, screenHeight = guiGetScreenSize() -- Get the screen resolution
    [..]
    dxDrawText( playerZoneName, 44, screenHeight-41, screenWidth, screenHeight, [..]
    

    This might come helpful?

  2. no HeroTerror i said when downloading its keep stopping or lagging my connection was high speed so that why :x

    It isn't a MTA bug. It is just that imagine the amount of people who have to download the resources (often like 5mb or so?) and then there's high bandwidth usage, etc. etc. That causes your download to be slow. Or some fileserver fail.

  3. Write into the console:

    stop resourcename

    start resourcename

    ... for both, the freeroam and admin resources to restart them.

    And in your case it probably needs to be mentioned that you need to replace "resourcename" with your resource's name!

  4. Not to cause server overload you shall move frequent timers like that to the player's side. If code like that executes on the player's side the server doesn't receive extra load from that. And for many things that in SA-MP for example you use a workaround (healing the vehicle in a timer) can be avoided in MTA using a simple function (this case setVehicleDamageProof)

    Sebas, I don't think the timer would be much of a killer though, specially if we don't include any hard calculations or very thorough code there. I've had a timer looping through 200 online players every 500 milliseconds and the features were very essential for the gamemode (I'm talking SA-MP).

  5. For a second I thought you were trolling.

    But no, there aren't bugs that would make the game unenjoyable, in fact MTA is the best online modification for GTA. As an extra you get a very friendly and helpful community, probably thousands of functions and did I mention... to play the best modification?

    Anyways if you find a bug then check if it is listed in the bug tracker - if not, report it!

    When downloading a resource from a server and the download hangs or doesn't start properly or anything that must be the server's problem.

    The game background is changed intentionally to look much better.

    MTA lags less than other online modifications you might find. There might be some lag caused by your game or your hardware configuration or the server executing some bad scripts on your side.

  6. 1)Do i need a resource (banserial cmd) to use this kind of ban?

    You'll need to store the banned serial somewhere (for example MySQL as Mini-Missions does) and then when a player connects, check if the player's serial is among the banned list. That's what you'll need. Also a command to ban a serial would be useful.

    3)If i get banned, i am banned only in that server right? Its possible to be unbanned by the admin of the server?

    Yes. MTA doesn't have a "shared (official) ban list" like SA-MP has (SprunkBuster) for example.

  7. NPCs in MTA can do everything that they can't do in SA-MP. They're more like the actors in leaked 0.2.5, but the only thing about that is there are still more functions and features. And they certainly don't take up a server slot.

  8. I wouldn't consider the support at ServerFFS any good. Specifically if someone's had a bad day and now expresses it on the costumers asking for support or is just being full of sarcasm. Also the servers there seem to really have some problems, for example a Netherlands unmanaged VPS can't stay up for more than 3-4 days straight due to hardware failures about which the customer receives no notice until he starts bothering the support enough for it to catch Wouter's attention.

    The server start/stop/restart command panel can be replaced easily using PuTTY or your ownmade small PHP script to run the SSH commands. The file manager can be replaced by a FTP client which brings more functionality. You can see your server CPU/mem usage using ps ux. FTP accounts, MySQL users and databases can easily be made in your (often free) control panel.

    ServerFFS also used to have some kind of a "service level agreement" thing. A €120 subscription even got the orderer free scripting support and an hour for answering help tickets. Regularly I had to wait 48-72 hours for my ticket to get answered. When my server was down due to the often long-lasting hardware failures or some kind of "transfers" then the support started ignoring mine and my friend's live support requests.

  9. It isn't the best to do queries like ... WHERE `name` = '...' because that will get slow if you have a slightly bigger database. It would be the best to add a index for the name (ADD INDEX(`name`)). Even better would be to make your table id-driven - that's infact the best solution so you literally ADD PRIMARY KEY(`id`) and make it AUTO_INCREMENT. If not using phpMyAdming then ALTER TABLE sql-command will help you to make it AUTO_INCREMENT.

    Then you would literally load the `id` into a variable for the player. Then you can easily run queries optimized and faster, like this

    -- where playerID is the database ID for the player
    executeSQLUpdate("yourTableName", "`SpawnX` = '" .. x .. "', `SpawnY` = '" .. y .. "', `SpawnZ` = '" .. z .. "'", "`id` = '" .. playerID .. "'")
    

    That would make it

    UPDATE `yourTableName` SET `SpawnX` = '.. x ..', `SpawnY` = ' .. y .. ', `SpawnZ` = ' .. z .. ' WHERE `id` = 'playerID'

  10. He's aware that MTA is a better mod (and I'm not talking about the way it is ran, which obviously better, but its functionality) and that's why he keeps posting. Out of disappointment and feeling bad over it.

  11. People are finally starting to understand which is the best. The audience yet isn't what it deserves to be for such an awesome mod like MTA, but it sure will be. And a major difference that keeps coming out is the difference between people who play MTA and who play other mods, of course the players on MTA are more sophisticated.

  12. oh dear Sugar. Put it to you easy, if you were someone from MTA and debating on SA-MP forums you would have been banned 20 seconds after making your first post which mentions MTA.

×
×
  • Create New...