Jump to content

DakiLLa

Members
  • Posts

    965
  • Joined

  • Last visited

Everything posted by DakiLLa

  1. not so necessary to make the same topic as previous.. as about your problem, try to use setPlayerTeam within the onPlayerLogin event
  2. not so necessary to make the same topic as previous.. as about your problem, try to use setPlayerTeam within the onPlayerLogin event
  3. are you lazy enough to write 1920x1080 in the search field?
  4. are you lazy enough to write 1920x1080 in the search field?
  5. well, thx a lot for your help, ive resolved this problem by the next way: ive divided width of bar by 1000 and multyplied it with current health. local hp = ( hp_Width / 1000 )*getElementHealth( gMe );
  6. well, thx a lot for your help, ive resolved this problem by the next way: ive divided width of bar by 1000 and multyplied it with current health. local hp = ( hp_Width / 1000 )*getElementHealth( gMe );
  7. hello guys, i want to make my own hud elements and i started from health bar. Well, everything is going good but i have one problem. How do i make that red line will show my current health percentage? I know, it requires some math skills but i have no any ideas... Anybody can help me? Here is a little piece of code ofcourse. addEventHandler( 'onClientRender', gRoot, function() local scX, scY = guiGetScreenSize(); local lineX = scX/1.1725; local lineEndX = scX/1.053; local lineY = scY/6.5; dxDrawLine( lineX, lineY, lineEndX, lineY, tocolor( 0, 0, 0, 255 ), 17 ); dxDrawLine( lineX+5, lineY, lineEndX-5, lineY, tocolor( 150, 0, 0, 255 ), 9 ); dxDrawLine( lineX+5, lineY, lineEndX-5, lineY, tocolor( 255, 0, 0, 255 ), 9 ); end ); So it looks like: Thx in advance
  8. hello guys, i want to make my own hud elements and i started from health bar. Well, everything is going good but i have one problem. How do i make that red line will show my current health percentage? I know, it requires some math skills but i have no any ideas... Anybody can help me? Here is a little piece of code ofcourse. addEventHandler( 'onClientRender', gRoot, function() local scX, scY = guiGetScreenSize(); local lineX = scX/1.1725; local lineEndX = scX/1.053; local lineY = scY/6.5; dxDrawLine( lineX, lineY, lineEndX, lineY, tocolor( 0, 0, 0, 255 ), 17 ); dxDrawLine( lineX+5, lineY, lineEndX-5, lineY, tocolor( 150, 0, 0, 255 ), 9 ); dxDrawLine( lineX+5, lineY, lineEndX-5, lineY, tocolor( 255, 0, 0, 255 ), 9 ); end); So it looks like: Thx in advance
  9. DakiLLa

    Hide Player Map

    toggleControl("radar", false)
  10. well, today i played mta and i've noticed one thing.. everybody knows valhalla, right? ok, then, i have just one question: how do they did 255 slots on their server? or mta 1.0.3 now supports more than 128 slots? or valhalla owners have a special order for 255 slots..? heh
  11. i think it would fail anyway..
  12. uhm, as i have undestood your first post, you could make an edit field on your gui window and then, when you click on the 'open' button, you check, what's written in this edit field, if it's correct, then your door is opening, if not - then nothing.. something like this: addEventHandler( 'onClientGUIClick', button_Open, function() if guiGetText( passwordEditField ) == 'somePassword' then triggerServerEvent( 'openDoor', getLocalPlayer() ); --open your door if password is correct else outputChatBox( 'Incorrect password' ); end; end , false );
  13. i remember that somebody already tryed to make something like oop-style with lua but failed, i think.. agree that it will take an ages to make a new full-power and full working oop "language".. this one and this
  14. it started happen to me too this day, may be there are some troubles in the game monitor service..
  15. DakiLLa

    Map editor problem

    When will 1.0.3 be released? lol, have you ever seen a main page ? it says that 1.0.3 is out ^^
  16. do you have any installed mods on your gta sa?
  17. Christmas Tree, located near Pirate ship in Las Venturas. There are flashing colored balls and some other cool stuff. Have fun Download link
  18. there is a function on the wiki, but it doesnt work anyway, due to some problems..
  19. Omg! Is this a part of 'peds and traffic' script? Oo
  20. I think you can take this resource and modify it lil bit with dxDrawText function, then just make your own function to draw text when you need it
  21. hey guys, is there server side function same as 'tocolor' ? or may be somebody knows a solution, how to transform rgb color format to a hex-string? Thx
  22. please, use the "Search" button, there was already made some topics like that
  23. uhm, i mean that he is just newbie and he knows only how to spawn player in certain coordinates, but those things like 'client side', 'tables' etc. would be very hard to understanding for him. Well, anyway, he just need to read more articles on the wiki lets stop this offtopic btw, megaman54, i guess, this topic starts to be like "I want to add something, please, write it for me"... Try to write that script what you want to get, then show it for us, we will tell you about your mistakes and will give you some advices ofcourse.
  24. ... blah blah blah ... i think he dont know what is client events and 'table' in lua.. yet..
×
×
  • Create New...