Jump to content

xRGamingx

Members
  • Posts

    191
  • Joined

  • Last visited

Everything posted by xRGamingx

  1. xRGamingx

    [REL] UCD RPG

    Noki broth help please
  2. Hi, my friend Tomás, help me to start the local server GTI, is that at the initial the server activate things that should not be activated with the startup, Help me by Teamviewer I have xaamp to be able to use phpmyadmin, Help me plz.
  3. xRGamingx

    [REL] UCD RPG

    Hello Friend Noki. I do not know how to make turf functions, explain me a bit well because turf does not appear
  4. xRGamingx

    Help

    ------------------------------------------------------------------- local stdLogged = 0 local db = exports.UCDsql:getConnection() --[[ function adminLog() end function stdLog(plr, type1, action, type2) if (not plr) or (not type1) or (not action) then return nil end if (plr:getType() ~= "player") or (type(type1) ~= "string") or (type(action) ~= "string") then return false end if (not type2) then type2 = "N/A" end end --]] function adminLog(admin, log_) local t = getRealTime().timestamp db:exec("INSERT INTO `adminlog` (`name`, `log_`, `datum`) VALUES (?, ?, ?)", admin, log_, t ) end function new(plr, type1, action, type2) if (not plr or not type1 or not action) then return nil end if (type(type1) ~= "string" or type(action) ~= "string") then return false end if (not type2) then type2 = "N/A" end local name local accname local serial if (isElement(plr) and plr.type == "player") then name = plr.name accname = plr.account.name serial = plr.serial else name = tostring(plr) accname = "N/A" serial = "N/A" end db:exec("INSERT INTO `logging` SET `name`=?, `acc`=?, `type`=?, `type2`=?, `tick`=?, `action`=?, `serial`=?", name, accname, type1, type2, getRealTime().timestamp, action, serial ) local risk = Account("risk").player ------Line error debugscript 3 if (risk) then local logs = db:query("SELECT * FROM logging"):poll(-1) local send = {} for i, log in ipairs(logs) do if (i >= #logs - 50) then table.insert(send, log) end end triggerClientEvent(risk, "logsView", resourceRoot, send) end stdLogged = stdLogged + 1 return true end function outputTotal(reset) if stdLogged ~= 0 then outputDebugString("[GTAlogging] Total standard logs inserted in the past 5 minutes: "..stdLogged) end if (reset) then stdLogged = 0 end end setTimer(outputTotal, 60000 * 5, 0, true) addCommandHandler("logged", outputTotal) ------------------- -- Some stuff we need to log ------------------- function logConnections() -- The account will be guest, so we don't need to worry about the query not being successful new(source, "join", "Joined server", source.ip) end addEventHandler("onPlayerJoin", root, logConnections) function logDisconnections(quitType) new(source, "quit", "Disconnected from server ["..quitType.."]", source.ip) end addEventHandler("onPlayerQuit", root, logDisconnections) Look script complet broth
  5. xRGamingx

    Help

    Hello friend how to solve this error? local risk = Account("risk").player ---- Line 61 error debugscript 3 if (risk) then local logs = db:query("SELECT * FROM logging"):poll(-1) local send = {} for i, log in ipairs(logs) do if (i >= #logs - 50) then table.insert(send, log) end end triggerClientEvent(risk, "logsView", resourceRoot, send) end stdLogged = stdLogged + 1 return true end [GTA]\GTlogging\logging.slua:61: attempt to index a boolean value -----debugscript 3
  6. xRGamingx

    [REL] UCD RPG

    Thanks everyone I could fix it,, Do you know why the mafia wars are not around? What active and do not leave the turf and I do not see error in debugscript 3
  7. xRGamingx

    [REL] UCD RPG

    Lampar1 help plz I have 1 error
  8. xRGamingx

    [REL] UCD RPG

    Friend I'm making a mistake, I do not know what it is, write me as I should, my account is Jhon
  9. xRGamingx

    [REL] UCD RPG

    Hi brother, I did what you told me and gives me this error https://fotos.subefotos.com/cab0ce98c1684e82c71fa2f556928b46o.png
  10. xRGamingx

    [REL] UCD RPG

    Noki, Look MP broth plz
  11. xRGamingx

    [REL] UCD RPG

    But I do ? Copy everything that is https://github.com/nokizorque/ucd/blob/master/ucd-rel.sql And I stick it on UCDsql Then in mysql ?
  12. xRGamingx

    [REL] UCD RPG

    Broth not Open admin panel, Look, , error debug [2016-11-12 02:19:07] ERROR: [UDC]\UCDadmin\adminTable.lua:6: attempt to index global 'db' (a boolean value) db = exports.UCDsql:getConnection() adminTable = {} addEventHandler("onResourceStart", resourceRoot, function () db:query(createAdminTable, {}, "SELECT * FROM `admins`") end ) ----adminTable function createAdminTable(qh) local result = qh:poll(-1) for _, row in pairs(result or {}) do adminTable[row.account] = {} for column, value in pairs(row) do if (column ~= "account") then adminTable[row.account][column] = value end end end for _, plr in ipairs(Element.getAllByType("player")) do if (isPlayerAdmin(plr)) then sendPermissions(plr) end end end local adminRanks = { [1] = "L1 Admin", [2] = "L2 Admin", [3] = "L3 Admin", [4] = "L4 Admin", [5] = "L5 Admin", [1337] = "Kiing",
  13. xRGamingx

    [REL] UCD RPG

    Hi Noki, db = exports.UCDsql:getConnection() adminTable = {} {"Kiing", "Admin L1337", "1337", 1337} addEventHandler("onResourceStart", resourceRoot, function () db:query(createAdminTable, {}, "SELECT * FROM `admins`") end ) function createAdminTable(qh) local result = qh:poll(-1) for _, row in pairs(result or {}) do adminTable[row.account] = {} for column, value in pairs(row) do if (column ~= "account") then adminTable[row.account][column] = value end end end for _, plr in ipairs(Element.getAllByType("player")) do if (isPlayerAdmin(plr)) then sendPermissions(plr) end end end To get the admin, how should I create the table? Is it good or bad? Or should I create some range in acl? Is that I do not open the UCDadmin
  14. I have not used it Put it and pass it to me, please
  15. Broth , look my script , Login Panel.. Friend look this is the script, this is part of the login, fix it look wdwLogin_Pannel = {} tabPannel_Main = {} tab_Login = {} tab_Register = {} --Settings blackLoginScreen = false --True/false Black screen, while player login... blackScreenTime = 6 --Time to complete disappearance of the black screen in seconds. wdwLogin_Pannel = guiCreateWindow(0.34, 0.13, 0.32, 0.64, "¡ Hola "..getPlayerName(localPlayer).." Bienvenido a Gamer Pro !", true) guiWindowSetSizable(wdwLogin_Pannel, false) showCursor(true) Actualiza = guiCreateMemo(0.02, 0.36, 0.96, 0.63, "", true, wdwLogin_Pannel) guiMemoSetReadOnly(Actualiza, true) edit_Login = guiCreateEdit(0.48, 0.08, 0.36, 0.07, "", true, wdwLogin_Pannel) edit_password = guiCreateEdit(0.48, 0.16, 0.36, 0.07, "", true, wdwLogin_Pannel) guiEditSetMasked(edit_password, true) lbl_Login = guiCreateLabel(0.04, 0.08, 0.43, 0.07, "Usuario", true, wdwLogin_Pannel) guiSetFont(lbl_Login, "sa-header") guiLabelSetHorizontalAlign(lbl_Login, "right", false) guiLabelSetVerticalAlign(lbl_Login, "center") lbl_Password = guiCreateLabel(-0.04, 0.16, 0.50, 0.07, "Contraseña", true, wdwLogin_Pannel) guiSetFont(lbl_Password, "sa-header") guiLabelSetHorizontalAlign(lbl_Password, "right", false) guiLabelSetVerticalAlign(lbl_Password, "center") checkbox_save = guiCreateCheckBox(0.84, 0.08, 0.13, 0.05, "Recordar", true, true, wdwLogin_Pannel) btn_Login = guiCreateButton(0.04, 0.28, 0.46, 0.06, "Loguear", true, wdwLogin_Pannel) guiSetFont(btn_Login, "default-bold-small") guiSetProperty(btn_Login, "NormalTextColour", "FFAAAAAA") botonregistrar = guiCreateButton(0.50, 0.28, 0.46, 0.06, "Registrarse", true, wdwLogin_Pannel) guiSetFont(botonregistrar, "default-bold-small") guiSetProperty(botonregistrar, "NormalTextColour", "FFAAAAAA") login_tab_error_msg = guiCreateLabel(0.04, 0.24, 0.92, 0.05, "", true, wdwLogin_Pannel) guiSetFont(login_tab_error_msg, "default-bold-small") guiLabelSetHorizontalAlign(login_tab_error_msg, "center", false) guiLabelSetVerticalAlign(login_tab_error_msg, "center") function open_log_reg_pannel(tabla) for i, g in pairs(tabla) do guiSetText(Actualiza, tostring(g.info)) guiSetText(login_tab_error_msg, "") --Поле ошибки в Login табе local username, password = loadLoginFromXML() if not( username == "" or password == "") then guiCheckBoxSetSelected ( checkbox_save, true ) guiSetText ( edit_Login, tostring(username)) guiSetText ( edit_password, tostring(password)) else guiCheckBoxSetSelected ( checkbox_save, false ) guiSetText ( edit_Login, tostring(username)) guiSetText ( edit_password, tostring(password)) end --Эвенты end end addEvent("ponerElLogin", true) addEventHandler("ponerElLogin", root, open_log_reg_pannel)
  16. Hello friends, I ask your help, because I want to give an animation to a login, I want the login panel to come down from above to the center of the player screen.. please help me
  17. Hola Looney, aun tienes tu sv ? me gustaria hablar contigo
  18. Hola amigo y como lo puedo hacer para jugadores ? ay esta para zombies , y quiero usarlo al matar jugadores, pasame ese aporte plz. gracias
  19. Hola a todos , Busco 1 o 2 Socios para crear un Multy GameMode Race/DM/pvp etc , Yo pago host me encargo de host siempre he pagado mis host con 1 mes de adelanto , nunca abra problemas en eso , espero que la persona que quiera crear el sv sea seria . . Tengo 2 Host activo que lo uso mas de 1 año misma compañia Host - 1 para test-. Host - 2 para el sv Usuarios-.
×
×
  • Create New...