Jump to content

Castillo

Retired Staff
  • Posts

    21,935
  • Joined

  • Last visited

  • Days Won

    6

Everything posted by Castillo

  1. Hiciste lo que yo te dije?
  2. Castillo

    help gate

    Post your entire script.
  3. Good work, it looks cool.
  4. Como te dije, no se si sirve para las armas de melee, proba y luego postea si funciono o no.
  5. That's a really bad method, it'll keep triggering to server side which isn't good. Also, you can just set it to one or two lines, no need for all these 'if' checks.
  6. No veo nada malo, fijate en la codificacion del archivo.
  7. The problem is that you are setting the HORIZONTAL position, not the VERTICAL position. local messageBoxVisible = true newMessageBoxGui = { gridlist = {}, window = {} } function toggleNewWindowVisible() if (messageBoxVisible == true) then guiSetVisible(newMessageBoxGui.window[1], false) messageBoxVisible = false else guiSetVisible(newMessageBoxGui.window[1], true) messageBoxVisible = true end end addEventHandler("onClientResourceStart", resourceRoot, function() newMessageBoxGui.window[1] = guiCreateWindow(0.33, 0.00, 0.33, 0.15, "", true) guiWindowSetSizable(newMessageBoxGui.window[1], false) guiSetAlpha(newMessageBoxGui.window[1], 0.59) newMessageBoxGui.gridlist[1] = guiCreateGridList(0.03, 0.17, 0.94, 0.76, true, newMessageBoxGui.window[1]) column = guiGridListAddColumn( newMessageBoxGui.gridlist[1], "", 0.85 ) if ( column ) then row = guiGridListAddRow ( newMessageBoxGui.gridlist[1] ) guiGridListSetItemText ( newMessageBoxGui.gridlist[1], row, column, "Willkommen auf ATV - Reallife", false, false ) end guiSetVisible(newMessageBoxGui.window[1], true) addNewMessage("LOL") addNewMessage("hallo") addNewMessage("LOL") addNewMessage("LOL") addNewMessage("ROFL") addNewMessage("LOL") addNewMessage("hallo") addNewMessage("LOL") addNewMessage("LOL") addNewMessage("ROFL") addNewMessage("LOL") addNewMessage("hallo") addNewMessage("LOL") addNewMessage("LOL") addNewMessage("ROFL") bindKey("o", "down", toggleNewWindowVisible) end ) function addNewMessage(message) local row = guiGridListAddRow ( newMessageBoxGui.gridlist[1] ) guiGridListSetItemText ( newMessageBoxGui.gridlist[1], row, column, message, false, false ) local rowCount = guiGridListGetRowCount ( newMessageBoxGui.gridlist[1] ) setTimer ( guiGridListSetVerticalScrollPosition, 50, 1, newMessageBoxGui.gridlist[1], 100 ) end
  8. Eso es todo el contenido del archivo?
  9. Fijate que devuelve "x", "y", "z" al enviarlo al client side.
  10. Why does he have to use a timer?
  11. Castillo

    help gate

    You're simply using the wrong name. This: for ID=1,#gates do should be: for ID=1,#gateMarkers do for ID=1,#gateMarkers do local object, x, y, z, int, dim = gateMarkers[ID][1], gateMarkers[ID][2], gateMarkers[ID][3], gateMarkers[ID][4], gateMarkers[ID][5], gateMarkers[ID][6] local theGateCol = createColSphere(x, y, z, gateMarkers[ID][12]) local theGate = createObject (object, z, y, z, gateMarkers[ID][5], gateMarkers[ID][6], gateMarkers[ID][7]) theGateColID[theGate] = ID addEventHandler("onClientColShapeHit", theGateCol, gateOpen) addEventHandler("onClientColShapeLeave", theGateCol, gateClose) end
  12. How do you know that it doesn't work? and, are you sure that you put it server side at the meta.xml?
  13. The setTimer function is wrong.
  14. Mind explaining what has that to do with his problem? he got all the required arguments filled:
  15. There are two ways I know: 1: Position check. 2: Create a gui-label on the same position. You can always create your own GUI system with DX.
  16. Same opinion here, it'll take longer to minimize the game, paste the text than open the console and write "say" then paste it.
  17. El primero esta mal, pusiste "bool" y "int", pero no son necesarios, ademas de que "Boxing" no es un estilo de pelea valido y ped no esta definido. En el segundo, pusiste "Addcommandhandler", esa funcion no existe, y lua no es case-sensitive asi que tenes que ponerlo como es, osea: "addCommandHandler". Tambien te olvidaste de crear la funcion en si.
  18. No se si setWeaponProperty soporta armas de melee, podes probar.
  19. onMarkerHit o onClientMarkerHit setElementAlpha -- Para ocultarlo. setElementModel -- Para cambiar el skin.
  20. No hace falta el for-loop. function getClanSpawn ( ClanName ) if ( not connection2 ) then return end local query = dbQuery ( connection2, "SELECT * FROM Spawns WHERE ClanName=?", tostring ( ClanName ) ) -- esto nose si esta bien local result, numrows, errmsg = dbPoll ( query, -1 ) if ( type ( result ) == "table" and #result == 0 or not result ) then return false else return result [ 1 ].spawnX, result [ 1 ].spawnY, result [ 1 ].spawnZ end end P.D: MultiKiller: No postees si no sabes.
  21. Usa "hitElement" en lugar de "luckyBugger" y borra getRandomPlayr.
  22. Deja el servidor abierto por lo menos por 12 horas, si no esta en la lista para entonces, volve y decime.
  23. 192.168.1.15 Eso esta mal, pusiste una IP local, no deberias haber tocado eso, ponelo asi:
×
×
  • Create New...