Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Download "TXD Workshop" and do a DFF check.
  2. Eso baneara al jugador si la vidas no son 0, busca que es "~=" en Lua.
  3. I think that it uses: getElementMatrix
  4. Fijate si de verdad se esta ejecutando el codigo despues de: if Vida == 0 then
  5. bindKey("F1", "down", function ( ) guiSetVisible(createVIP_wnd, not guiGetVisible ( createVIP_wnd )) showCursor(guiGetVisible ( createVIP_wnd )) if ( guiGetVisible ( createVIP_wnd ) ) then guiGridListClear ( playerList ) if ( column_name ) then for id, player in ipairs ( getElementsByType ( "player" ) ) do local row = guiGridListAddRow ( playerList ) local r, g, b = getPlayerNametagColor ( player ) guiGridListSetItemText ( playerList, row, column_name, getPlayerName ( player ), false, false ) guiGridListSetItemColor ( playerList, row, column_name, r, g, b ) end end if ( createVIP_colum_rank ) then for _, rank in ipairs ( { "Rich-Man", "Gold", "Silver", "Bronze" } ) do local row = guiGridListAddRow ( createVIP_grid_rank ) guiGridListSetItemText ( createVIP_grid_rank, row, createVIP_colum_rank, rank, false, false ) end end end end )
  6. There are already a few: https://community.multitheftauto.com/ind ... ls&id=1821 https://community.multitheftauto.com/ind ... ls&id=1354 Edit: Oh, that's not a resource editor, but a runcode with an interface, that could be useful for large scripts ( I made a easy one for my personal use ).
  7. Si, pone otro con el "msgtype" = 1.
  8. El chat es parte del MTA, tambien el "/me".
  9. You could set their dimension when dimension changes.
  10. You can't compile a file with UTF-8 encoding.
  11. I set the encoding, then save the script, then compile.
  12. Castillo

    warp bot

    You must use: removePedFromVehicle .
  13. For quit, you could kick the player ( kickPlayer ), and for say, you could use outputChatBox.
  14. What do you mean by you can't find how to send? you can just write "/say hello" or "/quit" on the chat, or the same without the "/" in the F8 console.
  15. Is not a bug I guess, must be that noone plays it anymore.
  16. That doesn't make any sense 3ɑsн8 ɑʟsнɾq. @wassmas: The problem is not on the HUD script, is on the creation of the blips, with the original HUD, it get's the color of the blip, which is what you put when created it.
  17. Castillo

    warp bot

    function petvehicle ( thePlayer ) if ( getElementType ( thePlayer ) == "player" and getElementData ( thePlayer, "leader", true ) ) then warpPedIntoVehicle ( animal, source, 1 ) end end addEventHandler ( "onVehicleEnter", getRootElement(), petvehicle )
  18. Castillo

    warp bot

    function petvehicle ( thePlayer ) if getElementData ( thePlayer, "leader", true ) then warpPedIntoVehicle ( animal, source, 1 ) end end addEventHandler ( "onVehicleEnter", getRootElement(), petvehicle )
  19. Would be easier to use a table.
×
×
  • Create New...