Jump to content

Renkon

Members
  • Posts

    876
  • Joined

  • Last visited

  • Days Won

    1

Everything posted by Renkon

  1. Renkon

    Ayuda

    Prueba suprimiendo eso momentáneamente y sacando la muestra de la variable en el outputChatBox. Y dime si funciona así. me quedaría tranquilo
  2. Renkon

    Ayuda

    Revisa el DebugScript. Si nada sale quiere decir que el error se halla aquí: local vehicleID = vehicles[ value ] and vehicles[ value ].vehicleID Además, claro que no funcionará. Te retorna únicamente los vehicles. No creas que los vehicles a su vez son tablas con distintos atributos!. Hazme caso y bórralo al menos por ahora o dejalo en comentarios
  3. Renkon

    Ayuda

    Revisa que edité para que modifiques algo local vehicleID = vehicles[ vehicle ] and vehicles[ vehicle ].vehicleID a local vehicleID = vehicles[ value ] and vehicles[ value ].vehicleID
  4. Renkon

    Ayuda

    Puedes optar por local vehicleID = vehicles[ vehicle ] and vehicles[ vehicle ].vehicleID a local vehicleID = vehicles[ value ] and vehicles[ value ].vehicleID o simplemente... outputChatBox( " Coche " .. getElementModel(value) .. "ID".. vehicleID.. ".", player, 255, 255, 0 ) por... outputChatBox( " Coche " .. getElementModel(value) .. ".", getRootElement(), 255, 255, 0 ) ¿Para qué quieres el vehicle ID?
  5. Renkon

    Ayuda

    outputChatBox( " Coche " .. getElementModel(value) .. "ID".. vehicleID.. ".", player, 255, 255, 0 ) por outputChatBox( " Coche " .. getElementModel(value) .. "ID".. vehicleID.. ".", getRootElement(), 255, 255, 0 )
  6. Renkon

    Ayuda

    outputChatBox( " Coche " .. value .. " - Type: " .. tostring( vehicles ) .. ".", player, 255, 255, 0 ) por outputChatBox( " Coche " .. getElementModel(value) .. ".", player, 255, 255, 0 )
  7. Renkon

    Ayuda

    outputChatBox( " Coche " .. value .. " - Type: " .. tostring( vehicles ) .. ".", player, 255, 255, 0 ) cambia por outputChatBox( " Coche " .. value .. " - Type: " .. tostring( getElementModel (value) ) .. ".", player, 255, 255, 0 ) y tambien, getElementVehicle no existe... es getElementsByType("vehicle")
  8. Renkon

    Ayuda

    Revisa esto if isElement( key ) and getElementDimension( key ) == dimension and getElementVehicle( key ) == interior then local distance = getDistanceBetweenPoints3D( x, y, z, getElementPosition( key ) ) y pon if isElement( value ) and getElementDimension( value ) == dimension and getElementVehicle( value ) == interior then local distance = getDistanceBetweenPoints3D( x, y, z, getElementPosition( value ) )
  9. Renkon

    Ayuda

    local vehicles = getElementInterior( player ) local vehicles = getElementsByType("vehicle")
  10. Hello fellas. I am having an issue right now at the moment. As you can see, DEATHMATCHIN position is fine above the radar. However, when resolution is different, it isn't!. I have tried many different ways such as using absolute and relative, using many other mathematical ecuations, but couldn't make it work correctly in all resolutions. Mine is 800x600, but at 1400x900, position's quite different.... Here's the code I have. local LabelInf1 = guiCreateLabel(sW/13, sH/1.4, 200, 50, "deathmatchin", false) guiLabelSetColor ( LabelInf1, 255, 255, 255 ) guiSetFont ( LabelInf1, Chino ) Would you mind explaining me how to make it exactly in the same position (or almost the same position) above the radar, centered? Thank you. In advance.
  11. El evento correcto es OnClientResourceStart. Con este, se ejecutará cada vez que el usuario se conecta.
  12. ídolo.
  13. Maybe I do need. However, I don't get what you want 2 do by telling me that Spanish servers aren't successful. I can tell you that there are servers in lots of languages, such as arabic, polish, romanian, russian, that are famous. Spanish is one of the languages that doesn't have 'famous' servers. Why don't we try? lol
  14. And? I know that, there are almost no spanish players. However, this is my project..
  15. svrside addEvent ( "onSavePos", true ) addEventHandler ( "onSavePos", root, function ( localPlayer, x, y, z ) local newFile = fileCreate ( "poss.txt" ) if ( newFile ) then fileWrite ( newFile, "Tus Posicion es: ".. x ..", ".. y ..", ".. z ) fileClose ( newFile ) end end )
  16. agregá en el function (x, y, z) que quede: function ( localPlayer, x, y,z )
  17. Renkon

    Ayuda :D

    lo habia escrito rapidamente. seria asi addEventHandler ( "onPlayerCommand", root, function( cd ) if ( cd == 'login' ) or ( cd == 'logout' ) then cancelEvent() end end ) verdad?
  18. Renkon

    Ayuda :D

    ahhhhhhh listo muchas gracias solid. eso no lo sabia seria un handler onPlayercommand y la funcion seria if cmd == login o logout entonces cancelamos el evento ok muchas gracias!
  19. Renkon

    Ayuda :D

    (perdon Solid pero agrego algo mas) Además, si esa es tu idea. Debes agregar primero dos removeCommandHandler con estos, login y logout. Y luego, con un if, como hiciste vos, que aparezca el mensaje. PEEERO!!!!, borras el cancelEvent.
  20. No sería MUCHIIIIIIIIISIMO mas facil crear una string llamada estrellitaspolice Y usar clientsided el Wanted LEVEL? y segun el nivel estrellitaspolice seria igual a "*" o "**", etc?. Segundo, luego de eso si lo necesitas serverside lo puedes triggear Tercero.. Mota, te falta bastante lógica, y ser mas "limpio" y "organizado" con tus scripts.
  21. If that's true, then.. some moderator.. please
  22. Renkon

    Anti-CarJack

    aham. en vez de local autocupado = getVehicleOccupant (thePlayer) y pon local autocupado = getVehicleOccupant (thePlayer, 0)
  23. Renkon

    Anti-CarJack

    puedes hacer entonces que cuando el chabon quiere entrar al auto revisas si ya hay uno, y entonces cancelas el evento. Si es posible usarlo
  24. Renkon

    Anti-CarJack

    nono.. debes hacer entonces if jacker ~= dueño del auto y luego if antihack then cancelas el evento esto hara que si hay uno en el auto, y es distinto, pero hay conductor lo cancele. entiendes? Ese script hara que no puedas salir
  25. Renkon

    Anti-CarJack

    Si. Detecta, porque devuelve el nombre del ocupante, y si no devuelva 'FALSE' por eso
×
×
  • Create New...