Jump to content

iPanda

Members
  • Posts

    174
  • Joined

  • Last visited

Everything posted by iPanda

  1. Hello everyone! I am interested in the question, what I can use to make draw a 3D object image over screen? To use it on top of other 2D DX functions. I know that this is possible in the MTA. Tell me, how do I do this and that I should use? Example screenshot:
  2. Good evening dear fans of the Star Wars series! I'm iPanda, Lua programmer. I am a fan of the Star Wars series Film and games, as you my reader. WORK: — I have a great knowledge of the language Lua and long experience in the MTA. My opportunities will realize the Star Wars universe in the MTA as that possible. I have no team - now I work alone. — I'm just a programmer, I need people to work with 3D models and making map in MTA Map Editor. If you want to help project, write the comments of this post or email me: [email protected] Also:.. [17.04.2015] Video-demo INTRO. _______________________________________________________________ [05.05.2015] What will happen next? — We do not know. I conducted a simple experiment, it was a test project. But he still has not received the audience's interest. Apparently no one was interested in the idea. Most likely I will not be his last. — If you want to project, and found the strength to continue to exist - us need an interest in it, i need a team that will do it. While I was alone. And I'll be waiting. _______________________________________________________________ [03.10.2015] Video-demo UI Hall Player. — I'm a little fashion continues to develop. I remain work alone, so everything is going so slowly. So far, all this is done only to show the fans the universe. GM is unlikely to open the server, if there is no team. — Finally determined gamemode genre: Arcade, TDM, Action _______________________________________________________________ Let the force be with you...
  3. Hi guys. How can i do reverse all elements in table? Example: --source local test = { {'13'}, {'42'}, {'51'}, } --reverse local test = { {'51'}, {'42'}, {'13'}, } The problem was solved by itself. Can anyone come in handy: function table.reverse(t) local reversedTable = {} local itemCount = #t for k, v in ipairs(t) do reversedTable[itemCount + 1 - k] = v end return reversedTable end
  4. Hi, Each player has a dx text to the left, which shows the message administrator for every player on the server. Message is the same. How outputChatBox() on the server side. --client local sms = '' addEventHandler('onClientRender',root,function() dxDrawText(sms,5,500,1,1,tocolor(255,255,255,250),1.2,'default-bold','left','top',false,false,false,false,false) end) and when the administrator writes a command to the server, it is displayed to all players in the line dx text. --server addCommandHandler('sms',function(admin,cmd) --my condition if player is admins (no matter) --here I need to equate 'cmd' to 'sms' < end) How do I send a variable to the server side and back? and how to work what I want?
  5. It is helped me: string.sub, thank
  6. Is there a function in Lua, allowing division 1 string to several parts strings? Example: 'example_string124' --division to strings: 'example' and '_string' and '124' In the worst case, is it possible? And how do I do this?
  7. Mizudori, Your example does not work... and it does not work... --being inside the car addCommandHandler('wheel',function(panda) local veh = getPedOccupiedVehicle(panda) setVehicleWheelStates(veh,-1,-1,-1,-1) end) I do not understand what the problem is. I've been doing this, but not one of the options does not work. Maybe function has bugs?
  8. Miika822, Your version does not suit my script. Maybe there are other ways of checking vehicle as a source, and a change of state of the wheels?
  9. Kenix, It's my banal error when write the code on a forum. But is not the problem. If you observe the correct syntax - nothing happens. As though function does not work.
  10. Why does not work function setVehicleWheelStates? (server) local veh = createVehicle(422,x,y,z) setVehicleWheelStates(veh,2,2,2,2) -- the problem here addEventHandler('onPlayerVehicleEnter',function(veh) setVehicleWheelStates(veh,-1,-1,-1,-1) outputChatBox('Wheel is fixed!',source) end) Nothing happens. No error. -
  11. Problem solved! Thank you very much for your help)
  12. This is what I needed, thank you) But there is a bug function. A player remains in the texture of the vehicle. Can not you fix it?
  13. Is there an antonym for the function warpPedIntoVehicle? The player when leaving the vehicle appeared next to the door. If no function, how to do it?
  14. iPanda

    solid water

    How can I do solid to all water of in world? Than player can walk on the water? Put objects under the water can cause hangs.
  15. iPanda

    delete post

    problem solved
  16. iPanda

    Connect COL?

    How can I check whether there is a one collision part hit to another collision part?
  17. iPanda

    Connect COL?

    Give an example of my not working: if element:getData('col'):isWithinColShape(source) and source:isWithinColShape(element:getData('col')) then outputChatBox('col connect') end
  18. iPanda

    Connect COL?

    I would like to know how to connect two small collisions in one big collision, if one collision part hit to another collision part. Screenshots: What event should I use? What are the conditions? Warning! I need to get one element_data from two the Coliseum! I tried a simple test collisions, but does not work: create col: col1 = createColSphere(0,0,0) col2 = createColSphere(1,1,0) col1:setData('col',true) col2:setData('col',true) checking connect: addEventHandler("onClientColShapeHit",root,function(element) if source:getData('col') and element:getData('col') then outputChatBox('connect collisions') end end)
  19. Если бы я отвечал в стиле "мта-ресурс", я бы начал с оскорблений или чего-то неадекватного. Не надо меня сравнивать с подобными пабликами, мне они не по душе. А что касается моего ответа - в списке примеров шейдеров, есть шейдер сферы, который довольно-таки легко разобрать. 50% работы выполнено. А как получить источник света - это уже надо судить в зависимости от того, как и для чего он хочет его получить. Это все.
  20. Способ конечно не очень практичный, потому что уберет все свечение в игре. Суть его состоит в том, чтобы заменить текстуру света на прозрачную, и ее попросту не будет. Для этого создай прозрачную картинку и назови ее clear.png clear.fx файл: texture gTexture; technique TexReplace { pass P0 { Texture[0] = gTexture; } } client.lua файл: addEventHandler("onClientResourceStart",resourceRoot,function() local shader = dxCreateShader("clear.fx") local texture = dxCreateTexture("clear.png") dxSetShaderValue(shader,"gTexture",texture) engineApplyShaderToWorldTexture(shader,"coronastar") end)
  21. Есть битые модели, из-за которых при входе на сервер МТА вылетает. Найди эту самую модель и просто удали ее.
  22. Самый легкий таймер с отсчетом от 5 до 0, и выводом текста: text = guiCreateLabel(0.05,0.5,1,1,"Отсчет: ",true) local n = 5 setTimer(function() n = n-1 guiSetText(text,"Отсчет: "..n) --еще можно вызвать какую-нибудь функцию если таймер истек if n < 1 then functionName() -- вызываем функцию end end,1000,5)
×
×
  • Create New...