Jump to content

ShadoX<~

Members
  • Posts

    155
  • Joined

  • Last visited

Details

  • Gang
    Insane Style Gamers
  • Location
    Monterrey NL , Mexico
  • Occupation
    My computer
  • Interests
    Cars , Music , Hosting

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

ShadoX<~'s Achievements

Busta

Busta (15/54)

3

Reputation

  1. Jamás lo intente, hasta donde sé, no es posible acceder a archivos fuera del servidor. Según este articulo en la wiki dice claramente que, el directorio del archivo que deseas abrir, tiene que estar dentro de la carpeta “resources”, podrías intentar con un API para hacerlo, en dado caso te recomendaría mejor meter los archivos de música en un servidor web como Apache o NGIX, usar el URL del archivo, y mandarlo por streaming al usuario, seria incluso más rápido. Saludos!
  2. Hi guys, I'm realtive new into scripting and as far as I know, I like it alot Right now I'm working on a simple but useless script that querys a MySQL Database to get a list of serials (random) then using a GUI Window with a gridList the user is able to see the table I have add a function to only make the system work for Admin Users It works like this The client side contains the GUI, when the user wants to open the panel, I added an CommandHandler that goes to a function that verify if the source is an admin, if it is, it triggers an ClientEvent that creates and display the GUI Then there is a button on the GUI that when it is clicked it triggers an Server Event that querys the Database and Triggers an Client Event to send the table with the information, then just using a for I fill the table of the grid list My Question -How secure it is ? can I get Hacked by the way my script is coded? -Any recomendation of how can I make it better? Thanks! Here is the code Client.lua --Function to create the GUI function createGUI() --Create the window window = guiCreateWindow(374, 221, 1181, 647, "Script", false) guiWindowSetSizable(window, false) Grid = guiCreateGridList(12, 52, 257, 408, false, window) QueryB = guiCreateButton(12, 465, 257, 37, "QUERY", false, window) Colum = guiGridListAddColumn( Grid, "Serial", 1.0 ) ExitB = guiCreateButton(466, 596, 249, 41, "Exit", false, Window) --Add event handler when the exit button is presed addEventHandler("onClientGUIClick", ExitB, closeGUI, false ) --Add event handler when the query button is presed addEventHandler("onClientGUIClick", QueryB, function() triggerServerEvent("sendMeTheData",resourceRoot) --This triggers the server Event that triggers a client event with the table end , false ) end --Function to start the GUI function startGUI() --Create GUI createGUI() --If everything is fime then set it to visible if (window ~= nil) then guiSetVisible(window, true) else outputChatBox("error") end --show cursor showCursor(true) guiSetInputEnabled(true) end --Function to close GUI function closeGUI() --hide the GUI guiSetVisible(Window, false) showCursor(false) guiSetInputEnabled(false) end --Function to fill the grid list row function fillRow(table) guiGridListClear(Grid) --clear the grid list --using for, fill the grid with the table for k, data in ipairs(table) do local row = guiGridListAddRow ( Grid ) guiGridListSetItemText ( Grid, row, Colum, data.serial , false , false ) --add item to row end end --Events and Event Handler addEvent("fillData",true) addEventHandler("fillData",getRootElement(),fillRow) addEvent("showGUI",true) addEventHandler("showGUI",getRootElement(),startGUI) Server.lua --MySQL data local host = "x.x.x.x" local user = "user" local password = "password" local database = "database" --Connect to mysql server local conexion = dbConnect( "mysql", "dbname="..database..";host="..host,user,password, "share=1") --Function to show the GUI function showPanel(player,cmd) --see if the player is admin if (isObjectInACLGroup("user." ..getAccountName(getPlayerAccount(player)),aclGetGroup("Admin"))) then --trigger client event to open the GUI triggerClientEvent(player,"showGUI",player) else outputChatBox("Sorry, you are not admin!",source) end end --Function to query mysql database and trigger client function to send table function getOnlyRow(tipo) local query = dbQuery(conexion,"SELECT * FROM log") local table = dbPoll(query,-1) --Trigger client event to fill grid list triggerClientEvent(client,"fillData",client,table) end --Event and event handler addEvent("sendMeTheData",true) addEventHandler("sendMeTheData",getResourceRootElement(),getTable) addCommandHandler("panel",showPanel)
  3. Te ahorro la busqueda Administrar un servidor de mta Instalar GM Paradise MySQL Denada.
  4. Unas Screen Shots ayudarian ... o minimo que mensaje de error te da ...
  5. Depende del tipo de VPS de podria ayudar Tengo una maquina dedicada con XenServer y recursos sin utilizar que la verdad no creo ocupar Cuanta carga le quieres dar al VPS ?
  6. Muchas Gracias Ciber! Muchas gracias por el consejo HAZJ, busco que el servidor sea latino, por eso decidí poner el post dentro de esta sección del foro !
  7. Buenas tardes! Como ya vieron en el título del post, estoy buscando gente que le encantaría formar parte de un Proyecto que tengo ya tiempo trabajando en él (Aproximadamente 4 – 5 años), se trata de un FreeRoam estilo SAMP, pero por qué SAMP?, bueno mi primer juego online fue SAMP, posteriormente MTA, y jamás olvidare lo divertido que eran los servidores FreeRoam SAMP, para los que no tuvieron la oportunidad aquí abajo anexare unas fotos para que ustedes mismos puedan entender aproximadamente cómo va el juego Ahora, será todo? No, el equipo actual tiene más ideas en mente, las cuales incluye zonas de drift, minigames, challanges y más!, Si estas realmente interesado nos gustaría invitarte a conversar con nuestro equipo para explicarte más a profundo a donde queremos llegar con este proyecto. Actualmente ya contamos con un Host, mapeos, dominio, ts, etc. Y lo más importante del proyecto son ideas y apoyo por parte de la comunidad de MTA, los invito a formar parte del proyecto o si pueden dejar aquí mismo ideas u opiniones de lo que gustarías ver en el servidor! Repito, si estas interesado no dudes en comunicarte con nosotros, mi equipo y yo estaremos encantados de trabajar contigo! Skype: shadox321 Email: [email protected] Gracias! (NOTA: no sabía dónde poner el post, si me equivoque de sitio una disculpa)
  8. Por lo que veo en tu LOG de error los archivos LUA no cargan de el servidor HTTP externo que supouestamente esta configurado aqui lo raro es que no tienes ninguna URL de un servidor HTTP externo agregado en el MTASA.CONF, me podrias decir si pasa eso unicamente con ese script o si con alguno mas? (Elimina el cache que tienes en la carpeta de MTA primero) para confirmar si es un error general o unicamente de ese script (Si se puede carga un script nuevo que jamas hayas usado, para ver si funciona)
  9. Me puede interesar tu proyecto pero necesito mas informacion sobre el, cuando gustes hablar mandame un Skype o Correo Skype: shadox321 Correo: [email protected]
  10. No soy parte de la empresa ni nada pero lo que define la capacidad de una maquina a soportar multi tareas no es el clock speed si no los cores que cuenta el CPU , para eso nuestros queridos amigos Xeon y opteron estan , ya que son procedores para uso en Servidores que requieren multi tasking , claro la velocidad de clock tambien es util pero no en este caso , en este caso si la maquina que se usa para hospedar el servicio es claro que compartida , jamas a sido rentable poner un servidor gaming de 1 dolar al mes en una maquina de 100 a 200 dolares al mes , y regresando al tema es problema de la empresa si sobre carga sus servidores Creo Linus creo un video hace tiempo explicando esto mismo , te lo dejo por aca , saludos !
  11. Hola amigo , lo de los pickups no se puede solucionar segun tengo entendido ya que mientras el ping de el jugador sea mas alto mas tiempo tardara el paquete que indica que tomo el pickup en llegar y regresar a su destino , por eso el ping se mide en MS que es una medida de tiempo que toma un paquete en viajar de un punto a otro , en este caso si el ping es alto como ya lo dije no creo que este una solucion para eso
×
×
  • Create New...