Jump to content

AMARANT

Members
  • Posts

    748
  • Joined

  • Last visited

Everything posted by AMARANT

  1. AMARANT

    Server lags

    Please guys help me out to solve my problem. The thing is that my server starts to lag if it has 10-12+ people online. The lags are like: delay on sending chat message, on starting vehicle engine, turning on/off lights, even entering a vehicle and so on. Here is a screenshot of my server CPU usage given by performancebrowser: http://i.imgur.com/PGMq3g3.jpg I assume it's because of using much element data or bad hosting but I don't know how to check it I can give more information if you need, just tell me. Thanks in advance.
  2. I need to disable blowing up when a vehicle is lying on the roof and starts to burn.
  3. Is there a way to cancel vehicle blowing up?
  4. What a nice and good-looking tutorial, mate! Two thumbs up!
  5. Кто знает что за новые скины будут добавлены в МТА 1.6 (246 штук) и где их можно посмотреть? Пруф: https://wiki.multitheftauto.com/wiki/Character_Skins
  6. AMARANT

    how ?

    Haha, lol) Man it's: tonumber
  7. You need to understand that you CAN'T add string values like "0$". It MUST be a number like 0. Your GUI labels contain data as strings so when you try to retrieve data from them it will be in a string format, not number. After that you add string to another string, but it's impossible. So convert your string to number with: tonumber(myString)
  8. Man, isn't it obvious? You're trying to do maths with 'strings'. Can you add "ABC"+"ABC"? What will you get then? Convert your strings 'text' and 'text2' to numbers with this: tonumber
  9. AMARANT

    [HELP]Peds

    That happens because you didn't set the right Z coordiante. Your ped needs to be on the gorund in order the rotation to be set correctly. Calculate the exact Z coordinate of the place where you need to create the ped.
  10. AMARANT

    Grenades

    Try to stop them one by one to find out which may cause the problem.
  11. Попробуй проверь что возвращает сам handler перед запросом. Есть вероятность что соединение с базой пропадает.
  12. Each weapon uses its own reloading animation. Find the block which is named after the weapon you want to reload. Then search for a word 'reload' in the animation name, e.g. "SILENCED", "Silence_reload" is reloading animation for Silenced pistol.
  13. AMARANT

    Help

    What do you mean by this? Is there another player on your server who can kill you? Or you kill yourself with some function? Because your code seems OK. UPD: Maybe your meta file is not correct. It should be like this:
  14. AMARANT

    Help

    Are you sure that it's server-side?
  15. AMARANT

    Chat type

    It is possible to make your own. Adding 'new type' of the chat depends on what you mean by that.
  16. Я бы и с радостью, но я не знаю, чем помочь МТА. Все что делаю это работаю над своим модом чисто на энтузиазме, если это никому не надо будет - солью в общак скорее всего. Потому что с таким онлайном как в МТА особо не раскрутишься. Насчет пабликов и правда вообще печально. Например в mta_public с контингентом около 1000 человек новости или какой-нибудь пост раз в пятилетку. Другие паблики вроде как пиарят сервера, но насколько это работает - неизвестно. А про киберспорт в МТА вообще первый раз слышу...
  17. You CAN use exported functions to create an element in another resource. Where did you get that information that you can't? Show your code if you have it.
  18. See https://wiki.multitheftauto.com/wiki/Element_tree for more details.
  19. AMARANT

    [HELP] Color

    He says that you should look up in the dxscoreboard_client.lua file from the 'dxscoreboard' resource dxDrawText functions which have arguments that can change string colors.
  20. That's not just an order. That's a logical order. Like I said you set an empty variable to your table and only after that you defined it.
  21. See lines 13 and 14 in my code and in yours.
  22. parts = { [1015] = { } } function attachCarPart(hitElement, partID) if (tonumber(getElementData(hitElement, "partInHand")) > 0) then local IDpart = tonumber(getElementData(hitElement, "partInHand")) destroyElement(parts[IDpart][hitElement]) parts[IDpart][hitElement] = nil setElementData(hitElement, "partInHand", 0) else part = createObject(partID, 0, 0, 0) parts[partID][hitElement] = part setElementData(hitElement, "partInHand", partID) end end
×
×
  • Create New...