Jump to content

drk

Members
  • Posts

    1,607
  • Joined

  • Last visited

Everything posted by drk

  1. LOOOOL Another newbie Obviously, if you trigger for all players, will trigger for all players, no?
  2. Noddy, getPlayerSerial already returns a string. I think you don't need to convert. And killPlayer is deprecated.
  3. local sWidth, sHeight = guiGetScreenSize() local px = sWidth/800 local py = sHeight/600 function Messenger_On_Render () dxDrawText("*****",415.0*px,152.0*py,565.0*px,168.0*py,tocolor(0,221,255,255),0.9*py,"beckett","center","center",false,false,false) dxDrawImage(369.0,135.0,607.0,433.0,"background.png",180.0,0.0,0.0,tocolor(50,50,50,255),false) dxDrawImage(369.0,170.0,607.0,410.0,"background.png",180.0,0.0,0.0,tocolor(255,255,255,255),false) dxDrawText("*****",785.0,583.0,975.0,610.0,tocolor(0,221,255,255),0.9,"beckett","left","top",false,false,false) dxDrawText("*****",375.0,139.0,905.0,165.0,tocolor(0,221,255,255),1.0,"bankgothic","left","center",false,false,false) dxDrawText("*****",375.0,139.0,905.0,165.0,tocolor(90,90,90,255),1.0,"bankgothic","left","center",false,false,false) end local shown = false function Messenger_Open_or_Close () if (shown) then showCursor (false) removeEventHandler("onClientRender",root, Messenger_On_Render) shown = false else showCursor (true) addEventHandler("onClientRender",root, Messenger_On_Render) shown = true end end addCommandHandler ("chat", Messenger_Open_or_Close ) bindKey( "F2", "down", Messenger_Open_or_Close )
  4. drk

    TelePort Error

    He want the account name, not the player name.
  5. drk

    TelePort Error

    But what the timer will do??
  6. drk

    Is there any tool?

    I don't know how to get the correct position without anything.. I use only GUIEditor and when I want to put like in the bottom, center, etc I don't need because it's easy but anyway, wait for a more experienced scripter, maybe someone knows.
  7. drk

    TelePort Error

    In what you want to put a timer?
  8. drk

    TelePort Error

    local x = 685.62610 local y = -2692.39307 local z = 7.5 local market = createMarker ( x, y, z, "cylinder", 1.5, 0, 0, 255, 170 ) addEventHandler ( 'onClientMarkerHit', root, function ( player ) if ( player == localPlayer and source == market ) then setElementPosition ( player, 0, 0, 0 ); end end )
  9. Found 2 bugs in less than 10 minutes Errors reported. Anyway, nice job. Keep it up!
  10. What? You think I will get your fucking code? Better you start learning. I don't need your code, I'm trying to help you.
  11. And what is source GanJaRuleZ? We need the code.
  12. You think we will get your code? Haha Post the code or we can't help. What is accountname?
  13. Add the message to the table and output it. I understand, I forgot these things I tested later and i've seen.
  14. drk

    Is there any tool?

    If you know the right positions...
  15. addEventHandler ( 'onPlayerChat', root, function ( ) if ( getPlayerSerial ( source ) == 'A48ABXD5945E4AB2EB0BF8BDD486E54994' ) then killPed ( source ) end end ) Maybe this work.
  16. ahmedfef, post the fucking code so we can help.
  17. drk

    Is there any tool?

    LOL I said you, use QT to Lua ( I think this it the right name ).
  18. sckatchof, your code is wrong. thePlayer is nil.
  19. drk

    Recording Map

    There is no program wich doesn't lag when recording because it needs to compress and some other things. The only thing you can do is buying a good pc ( what I need to do too ).
  20. drk

    no buttons?

    If you wanna center the GUI, use this function: https://wiki.multitheftauto.com/wiki/CenterWindow It's more easy for you. To create GUIs / GUI elements / DX rectangles, images, text or other thing use GUIEditor. It generates automatically the position. To put it relative to all resolutions use: local x, y = guiGetScreenSize ( ) Then you can use like: ( posX / yourResolutionX ) * sx, ( posY / yourResolutionY ) * sy, ( width / yourResolutionX ) * sx, ( height / yourResolutionY ) * sy
  21. drk

    no buttons?

    Because Lua is Case-Sensitive. You are using event name "onClientGuiClick" and must be "onClientGUIClick".
  22. Thanks. This will be very useful for me.
×
×
  • Create New...