Jump to content

Piorun

Members
  • Posts

    421
  • Joined

  • Last visited

Everything posted by Piorun

  1. Hi! My next problem is - when i'm creating widescree with 2 rectangles for my resolution (1024x728) it looks nice, but when i change res to 800x600 everything looks horrible. How can i change it?
  2. Hi. I've got a problem with showing dx rectangle when player joins. My code looked like: function loginWindow () addEventHandler("onClientRender",root, function() dxDrawRectangle(0.0,0.0,1024.0,168.0,tocolor(0,0,0,204),false) dxDrawRectangle(0.0,592.0,1024.0,768.0,tocolor(0,0,0,204),false) end ) end addEventHandler("onClientPlayerJoin", getRootElement(), loginWindow) but it doesn't works. Please, help.
  3. Weim, tylko to była ściema dla amerykanów. Wkrótce zmienię.
  4. Odezwał się stary aż 17-latek. Fakt, że powyżej średniej, no ale żeby w tym wieku rzucać "dziećmi".. Luuuuz .. .
  5. Cześć dzieci . Wszystkiego wesołego na święta - to po pierwsze. A po drugie - ma ktoś może chętkę stworzyć ze mną serwer RP? Mam zaczęty projekt lecz potrzebuję ludzi. Jbc. moje gadu - 2167268. A tak poza tym - nie wiedziałem, że varez to polak ..
  6. Hi. I've got an idea to create functions like "loadCustomDFF", "loadCustomTXD" etc. with different IDs (not replacing old models, anims...) What do you think about it?
  7. Hi everyone. I have got a problem. I want to create serwer with San Vice mod, but when I want join to my serwer MTA send mi an error. What I should do to start a stable serwer? Meybe I should change something in MTA code ?
  8. Hi. Can i create my own anims and put them into MTA?
  9. When player use command "objekt" object should be created at the place where player have right foot bone with a text.
  10. Hi again. My next problem is - i want to write a code like this: addEvent ( "tworzenieObiektu", true ) function obiekt ( ) for k,v in ipairs(getElementsByType("player")) do local px,py,pz = getPedBonePosition(v,54) local rx,ry,rz = getElementRotation(v) local ox,oy,oz = createObject ( 346, px, py, pz, 90, 0, rz+135) end end addEventHandler ("tworzenieObiektu", rootElement, obiekt) function obText ( ) triggerEvent("tworzenieObiektu", rootElement, ox, oy, oz) local x,y = getScreenFromWorldPosition(ox,oy,oz) if x then dxDrawText("Pistolet",x,y) end end function object ( ) addEventHandler("onClientRender", rootElement, obText) addEventHandler ("tworzenieObiektu", rootElement, obiekt) end addCommandHandler ("objekt", object) I want to write a command, and then object will be created with the text "Pistol". Please, help. Now if i'm typping this command an object is creating without text, and the object is creating when i'm walking.
  11. Yes, i'm writting script or scripts for my own RP server, polish server .
  12. Piorun

    About limits

    Ok - I found one topic about limits. Thanks a lot.
  13. Piorun

    About limits

    I have one question: are in MTA limits about vehicles, objects etc. ?
  14. Yeah, i understand . Thank you TDK .
  15. Hey everyone. From where i can get MTA 1.1 ??? Is this DM or RACE mod ?
  16. Ok and the last question. How to center this text? When i join into the server i saw my nickname at the right side. I include an image: Image
  17. The_Ex thanks. It works really nice . I've got one more question. How to hide this text for local player, but shows for all players?
  18. Yhm, okey. I'll try. local rootElement = getRootElement() function test ( ) local px, py, pz = getElementPosition ( rootElement ) local x, y, z = getScreenFromWorldPosition( px, py, pz+1 ) if x then example = dxDrawText( "Imie Nazwisko", x, y ) end end function nick ( ) addEventHandler("onClientRender", rootElement, test) end addEventHandler ( "onClientResourceStart", rootElement, nick ) This is my code but it doesn't work. What i'm doing wrong?
  19. I've got problem with my script, so i need help. I was trying to create a nice code, but this code doesn't work. 1. How to create a script - when the player join into the server his nametag shows at the top of the head for all player, but his health bar was hide (i'm thinking i must use dxDrawText function). Please, help. I'm really noob of lua .
  20. Piorun

    Nicknames

    Hi! I've got next problem. I want to create some function like this: local localPlayer = getLocalPlayer ( ) function test ( ) addEventHandler( "onClientRender", getRootElement(), function( ) local px, py, pz = getElementPosition ( localPlayer ) local x, y, z = getScreenFromWorldPosition( px, py, pz+1 ); if x then example = dxDrawText( "Imię Nazwisko", x, y ); end end ) end addEventHandler ( "onClientPlayerJoin", getLocalPlayer(), test ) How it should work? When player join into the server this function should create a Text and show this text at the top of head. With "addCommandHandler" it's work. Any sugestions?
  21. Ok, i did it, but my nex question and the last at this topic is : how to disable command /login ?
  22. Hey everyone. I have got a problem - when i installed MTA on my computer i want to create my server, but when i open the MTA server folder i saw there are not accounts.xml file. What happend? Next problem is - I've got a resource where there must be an Admin, but i can't add an Admin account. Please, help.
  23. Piorun

    Next question

    every sugestions are good, i'll try all of them. Lordy .. nice avatar. Thanks guys.
×
×
  • Create New...