Jump to content

TarkFox

Members
  • Posts

    18
  • Joined

  • Last visited

Everything posted by TarkFox

  1. EXELENTE BRO, ahora si me funciono gracias :D
  2. eso lo hise, pero no sirve habria otra solucion?
  3. ahh si, ahi donde dice account name, si lo cambie y nada..
  4. hola, hoy descargue de la comunidad este panel https://community.multitheftauto.com/ind ... ls&id=8770 ahi dice que edite unas lineas de un archivo llamado staff.lua nose como se hacia pero intente como creia, los reportes llegan y todo bien pero no me abre el panel de administracion, me ayudan?? Staff.lua local staffTable = { --You can add admins manually here -- {"Account Name"}, --Eg. {"Kunal"}, } --=========================================Don't edit anything below this or you might break it=========================================-- local staffTeam = createTeam("Staff", 225, 225, 225) local unoccupiedTeam = createTeam("Unoccupied", 225, 225, 0) addEventHandler("onResourceStart", root, function() for i=1, #staffTable do local staffList = dbPoll(dbQuery(adminDB, "SELECT * FROM staffList WHERE staff=?", staffTable[i][1]), -1) if (#staffList == 0) then dbExec(adminDB, "INSERT INTO staffList(staff) VALUES(?)", staffTable[i][1]) end end end ) addEventHandler("onPlayerLogin", root, function() local staffName = dbPoll(dbQuery(adminDB, "SELECT * FROM staffList WHERE staff=?", getAccountName(getPlayerAccount(source))), -1) if (not (#staffName == 0)) then setElementData(source, "isPlayerStaff", true) outputChatBox("Logged In as admin", source, 225, 225, 225) end end ) addCommandHandler("gostaff", function(plr) local isStaff = getElementData(plr, "isPlayerStaff") if (isStaff) then setPlayerTeam(plr, getTeamFromName("Staff")) setElementModel(plr, 217) outputChatBox("Entered staff mode", plr, 225, 225, 225) else return end end )
  5. ciber, teng creado el boton pero no se como hacer la funcion teng oel boton y label, que es para escribir el tiempo la razon y esto, pero quiero hacer que en la label ponga el tiempo y rodo eso, pero el boton lo tengo echo, pero no tengo la funcion
  6. hola, tengo unadmin panel, para mi nuevo servidor "Generacion TF" que necesito reparar algunos bugs etc, bueno en el panel de admin me falta tengo un boton de mute, pero no lo tengo funcionable, quiero saber como puedo hacerle la funcion a ese boton, por ejemplo en la lista de players, apreto el player y le doy a la opcion mute, pero en una linea que cree para escribir, yo ponga el tiempo y la razon, luego de eso salga en un chatbox esto "El player [nickplayer] ah sido muteado por [la razon] [Tiempo de mute] el [nickadmin]" ejemplo mas detallado El Player kane ah sido muteado (Spam/uncode)(10min) Por [TF]TarkFox-Lv4
  7. no, esque solo los STAFF que esten en el grupo ACL, yo en el grupo ACL tengo los niveles de admin, entonces estos son lvl 1 lvl 2 lvl 3 lvl 4 lvl 5 lvl 10(mio) entonces quiero que solo los del ACL (esos qie puse) puedan poner /equipoadm y que sean invencibles(que no mueran por nada del mundo cuando esten con el equipoadm activado) y cuando lo tengan desactivado, que sean como un player normal entienden?
  8. como puedo hacer que cuando unAdmin De Algun Grupo por ejemplo lvl 1 ponga /equipostaff y se cambie el Team Staff y ocupacion que diga lo que yo quiera que diga? por ejemplo lvl 1(ACL) (ocupacion) Trial STAFF y que el admin no muera cuando tenga este comando? w function maskoff ( thePlayer, commandName, r, g, b ) setPlayerNametagColor( thePlayer, 255, 255, 255) end function maskaon ( thePlayer, commandName, r, g, b ) setPlayerNametagColor ( thePlayer, F, F, F ) end addCommandHandler("Equipoadm", maskaon)
  9. hola, alguien me dice como crear una score board, asi player| Ocupacion | Gang | Horas | Ping y que solo el admin de un grupo de ACL por ejemplo Yo, Lv10 solo yo peda dar horas a los players, dejenme un codigo please, o un link, eh buscado en la wiki, pero no sale nada de dar horas, gracias..
  10. TarkFox

    ayuda

    me pueden dejar el ejemplo o un codigo, porfavor, esque lo revise pero no se que puedo poner no soy muy experto en esto, yo solo edito los jobs etc, porfavor(no se burlen, hay mucha gente que lo hace y hace sentir mal a los demas Ej ami) se los agradeceria mucho, gracias.
  11. TarkFox

    ayuda

    Hola otra vez amigos, vengo por el siguiente tema, hace unos dias me hice un script que es para ver chat de distintas ciudades, ahora yo quiero que los administradores no les marque la ciudad que estan cuando escriben, y que podamos leer todos los chats, local say etc etc, me ayudan?
  12. si, me sirvio, gracias ! muuuchas gracias!
  13. Amigos, ya tenia lleno eso, estoy haciendo un sv RPG llamado Generacion TF, pero borre algo llamado Help Manager (creo que se llamaba asi) que biene con el servidor, porque no me gustaba que estuiera, pero despues de borrar aquello ya no sirvio mas, entonces creo que fue por eso que pasa eso
  14. -- This parameter specifies the name the server will be visible as in the ingame server browser and on Game-Monitor. It is a required parameter. --> -- ONLY USE THIS PARAMETER IF YOU ARE SURE OF WHAT YOU ARE DOING - it is generally only needed for professional servers and should be left blank otherwise. This parameter specifies the IP to use for servers that have multiple IP addresses. If left blank, it will default to server's standard local IP address. --> 22003 100 1 22005 1 5 20 [url=https://wiki.multitheftauto.com/wiki/Anti-cheat_guide]https://wiki.multitheftauto.com/wiki/Anti-cheat_guide[/url] e.g. To disable anti-cheat #2 and #3, use: 2,3 --> [url=https://wiki.multitheftauto.com/wiki/Anti-cheat_guide]https://wiki.multitheftauto.com/wiki/Anti-cheat_guide[/url] e.g. To enable special detection #12 use: 12 --> 1 [url=https://wiki.multitheftauto.com/wiki/GetPlayerVersion]https://wiki.multitheftauto.com/wiki/GetPlayerVersion[/url] and look like this: 1.1.0-9.03100.0 Note that this setting only determines if the client should be prompted to update. The actual build number they receive will be the highest available. See: [url=https://nightly.multitheftauto.com/ver]https://nightly.multitheftauto.com/ver[/url] --> 1.3.4 [url=https://nightly.multitheftauto.com/ver]https://nightly.multitheftauto.com/ver[/url] --> 1 0 -- This parameter reduces the server's bandwidth usage by using various optimizations. Values: none, medium or maximum ; default value: medium --> medium -- The following ???_sync_interval parameters determine the time in milliseconds between certain network packets being sent. More information on how each settings works is available here: https://wiki.multitheftauto.com/wiki/Server_mtaserver.conf --> -- Player sync interval. Default: 100 --> 100 -- Lightweight (player) sync interval. Used when players are far apart. Default: 1500 --> 1500 -- Camera sync interval. Default: 500 --> 500 -- Ped sync interval. Default: 400 --> 500 -- Unoccupied_vehicle sync interval. Default: 400 --> 1000 -- Keysync mouse rotation sync interval. For limiting key sync packets due to mouse movement. Default: 100 --> 100 -- Keysync analog movement sync interval. For limiting key sync packets due to joystick movement. Default: 100 --> 100 -- This parameter can improve the reliability of shots when using certain weapons. However, it uses more bandwidth. Values: 0 - disabled , 1 - enabled ; default value: 0. --> 0 -- This parameter sets the amount of extrapolation that clients will apply to remote vehicles. This can reduce some of the latency induced location disparency by predicting where the remote vehicles will probably be. Depending on the gamemode, an incorrect prediction may have a negative effect. Therefore this setting should be considered experimental. Available range: 0 to 100. Default - 0 --> 0 -- This parameter places a limit on how much time (in milliseconds) the vehicle extrapolation will attempt to compensate for. Only relevant if is greater than zero. Available range: 50 to 500. Default - 150 --> 150 -- This parameter can reduce the delay of player actions appearing on remote clients by 2 frames (approx 50ms). Due to the impact this may have on shot lag compensation, it should be considered experimental. Values: 0 - disabled , 1 - enabled ; default value: 0. --> 0 -- Specifies the location and file name of this servers unique private key. This is used to prevent private files saved on the client from being read by other servers. More infomation about client private files can be found here: [url=https://wiki.multitheftauto.com/wiki/Filepath]https://wiki.multitheftauto.com/wiki/Filepath[/url] Keep a backup of this file in a safe place. Default value: server-id.keys--> server-id.keys -- Specifies the location and name of the main server log file. If left blank, server won't be saving this file. --> logs/server.log -- As well as the main log file, login successes and failures are logged here for easy reviewing of security issues. If left blank, this file is not used --> logs/server_auth.log -- Specifies the location and name of the file used to log database queries. The server command 'debugdb' sets the amount of logging. --> logs/db.log -- Specifies the location and name of the file used to log loadstring function calls. If left blank or not set, no logging is done. --> -- logs/loadstring.log --> -- This parameter specifies the location and name of the Access Control List settings file. If left blank, server will use acl.xml file, located in the same folder as this configuration file. --> acl.xml -- Specifies the location and name of the debugscript log file. If left blank, server won't be saving this file. --> logs/scripts.log -- Specifies the level of the debugscript log file. Available values: 0, 1, 2, 3. When not set, defaults to 0. --> 0 -- Specifies the level of the html debug. Available values: 0, 1, 2, 3. When not set, defaults to 0. --> 0 -- Specifies the frame rate limit that will be applied to connecting clients. Available range: 25 to 100. Default: 36. --> 60 -- Specifies whether or not players should automatically be logged in based on their IP adresses --> 0 -- This parameter specifies whether or not to enable player voice chat in-game Values: 0 - disabled , 1 - enabled --> 1 -- This parameter specifies the sample rate for voice chat. 'voice' parameter must be set to 1 for this to be effective. Higher settings use more bandwidth and increase the sampling quality of voice chat Values: 0 - Narrowband (8kHz), 1 - Wideband (16kHz), 2 - Ultrawideband (32kHz). Default - 1 --> 1 -- This parameter specifies the voice quality for voice chat. 'voice' parameter must be set to 1 for this to be effective. Higher settings use more bandwidth and increase the the overall quality of voice chat Available range: 0 to 10. Default - 4 --> 4 -- Specifies the voice bitrate, in bps. This optional parameter overrides the previous two settings. If not set, MTA handles this automatically. Use with care. --> -- 24600 --> -- This parameter specifies the path to use for a basic backup of some server files. Note that basic backups are only made during server startup. Default value: backups --> backups -- This parameter specifies the number of days between each basic backup. Backups are only made during server startup, so the actual interval may be much longer. Setting backup_interval to 0 will disable backups Available range: 0 to 30. Default - 3 --> 3 -- This parameter specifies the maximum number of backup copies to keep. Setting backup_copies to 0 will disable backups Available range: 0 to 100. Default - 5 --> 5 -- This parameter specifies when the internal sqlite databases should be defragmented. http://www.sqlite.org/lang_vacuum.html Values: 0 - Never, 1 - On server start only after basic backup, 2 - On server start always. Default - 1 --> 1 -- Specifies the module(s) which are loaded with the server. To load several modules, add more parameter(s). Optional parameter. --> -- --> -- --> -- Specifies resources that are loaded when the server starts and/or which are protected from being stopped. To specify several resources, add more parameter(s). --> "admin" startup="1" protected="0"/> "defaultstats" startup="1" protected="0"/> "helpmanager" startup="1" protected="0"/> "joinquit" startup="1" protected="0"/> "mapcycler" startup="1" protected="0"/> "mapmanager" startup="1" protected="0"/> "parachute" startup="1" protected="0"/> "resourcebrowser" startup="1" protected="1" default="true"/> "resourcemanager" startup="1" protected="1"/> "scoreboard" startup="1" protected="0"/> "spawnmanager" startup="1" protected="0"/> "voice" startup="1" protected="0" /> "votemanager" startup="1" protected="0"/> "webadmin" startup="1" protected="0"/>
  15. Hola, Tengo un problema, Al Iniciar la consola del servidor Me sale El Siguiente Error: MTA: BLUE Server for MTA:SA ERROR: Error parsing config file server stopped! Press Q to shut down the server! Porfavor, ayudenme, Gracias!
  16. hola, quiero que me ayuden con esto, este resource trata de cuando uno pone un comando, te cambia al team staff, eres invencible, (no mueres) pero yo quiero cambiarle algunas cosas, quiero que cambiar el comando, la ocupacion que aparesca en TAB y hacer correr el adminchat, que no me funciona. ok quiero que sea asi, para que funcione, para cambiarme de team, poner el comando /equipoadm, en la ocupacion que aparesca como los niveles, lvl 1, Staff Trial Lv1, lvl 2 Staff Para Ayudas Lv2, lvl 3 Moderador Lv3, lvl 4 Administrador Lv4, lvl5 Creador/Lider De Fuerzas Armadas.(puse lvl 1, lvl 2, lvl 3, lvl 4, lvl 5, porque asi me sale en los grupos del ACL) esto se llama Server1.lua function createTeamsOnStart () teamstaff = createTeam ( "Staff", 255, 255, 255 ) end addEventHandler("onResourceStart", resourceRoot, createTeamsOnStart) function lol ( player, command ) setPlayerTeam ( player, teamstaff ) setElementModel(player, 217) setPlayerNametagColor ( player, 255, 255, 255 ) end addCommandHandler ( "staff", lol ) este se llama staffserver.lua function togglestaffMode(thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) local admin = "Admin" local staff1 = "New Staff" local staff2 = "Trained Staff" local staff3 = "Trusted Staff" local staff4 = "High Staff" local staff5 = "Head Staff" local moderator = "Moderator" local owner = "Owner" local mapper = "Mapper" local die = "N/A" if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "stafflevel1" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) setElementData(thePlayer, "Occupation", die) outputChatBox("Your Staff Mode is now off.",thePlayer,255,255,255) else setElementData(thePlayer,"invincible",true) outputChatBox("Staff Mode is now on.",thePlayer,255,255,255) setElementData(thePlayer, "Occupation", staff1) end elseif ( isObjectInACLGroup ("user.".. accountName, aclGetGroup ( "stafflevel2" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) setElementData(thePlayer, "Occupation", die) outputChatBox("Staff Mode is now off.",thePlayer,255,255,255) else setElementData(thePlayer,"invincible",true) outputChatBox("Staff Mode is now on.",thePlayer,255,255,255) setElementData(thePlayer, "Occupation", staff2) end elseif ( isObjectInACLGroup ("user.".. accountName, aclGetGroup ( "stafflevel3" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) setElementData(thePlayer, "Occupation", die) outputChatBox("Staff Mode is now off.",thePlayer,255,255,255) else setElementData(thePlayer,"invincible",true) outputChatBox("Staff Mode is now on.",thePlayer,255,255,255) setElementData(thePlayer, "Occupation", staff3) end elseif ( isObjectInACLGroup ("user.".. accountName, aclGetGroup ( "stafflevel4" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) setElementData(thePlayer, "Occupation", die) outputChatBox("Staff Mode is now off.",thePlayer,255,255,255) else setElementData(thePlayer,"invincible",true) outputChatBox("Staff Mode is now on.",thePlayer,255,255,255) setElementData(thePlayer, "Occupation", staff4) end elseif ( isObjectInACLGroup ("user.".. accountName, aclGetGroup ( "Moderator" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) setElementData(thePlayer, "Occupation", die) outputChatBox("Staff Mode is now off.",thePlayer,255,255,255) else setElementData(thePlayer,"invincible",true) outputChatBox("Staff Mode is now on.",thePlayer,255,255,255) setElementData(thePlayer, "Occupation", mod) end elseif ( isObjectInACLGroup ("user.".. accountName, aclGetGroup ( "Admin" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) setElementData(thePlayer, "Occupation", die) outputChatBox("Staff Mode is now off.",thePlayer,255,255,255) else setElementData(thePlayer,"invincible",true) outputChatBox("Staff Mode is now on.",thePlayer,255,255,255) setElementData(thePlayer, "Occupation", admin) end elseif ( isObjectInACLGroup ("user.".. accountName, aclGetGroup ( "Owner" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) setElementData(thePlayer, "Occupation", die) outputChatBox("Staff Mode is now off.",thePlayer,255,255,255) else setElementData(thePlayer,"invincible",true) outputChatBox("Staff Mode is now on.",thePlayer,255,255,255) setElementData(thePlayer, "Occupation", owner) end elseif ( isObjectInACLGroup ("user.".. accountName, aclGetGroup ( "Mapper" ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) setElementData(thePlayer, "Occupation", die) outputChatBox("Staff Mode is now off.",thePlayer,255,255,255) else setElementData(thePlayer,"invincible",true) outputChatBox("Staff Mode is now on.",thePlayer,255,255,255) setElementData(thePlayer, "Occupation", mapper) end end end addCommandHandler("staff",togglestaffMode) este se llama adminchat.lua function adminChat( thePlayer,_,... ) local text = table.concat( {...}, " " ) local name = getPlayerName( thePlayer ) for _,v in pairs( getPlayersInGroup( accName ) ) do outputChatBox ("#FF0000(CMD) "..tostring( name )..": #FFFFFF"..tostring( text ), v, 255, 255, 255, true) end end addCommandHandler("cmd", adminChat) function getPlayersInGroup( accName ) local Table = { } for _,v in pairs( getElementsByType( "player" ) ) do local accName = getAccountName ( getPlayerAccount ( v ) ) if (isObjectInACLGroup ("user." .. accName, aclGetGroup("SuperAdmin")) or isObjectInACLGroup ("user." .. accName, aclGetGroup("lvl 1")) or isObjectInACLGroup ("user." .. accName, aclGetGroup("lvl 2")) or isObjectInACLGroup ("user." .. accName, aclGetGroup("lvl 3")) or isObjectInACLGroup ("user." .. accName, aclGetGroup("lvl 4")) or isObjectInACLGroup ("user." .. accName, aclGetGroup("lvl 5")) or isObjectInACLGroup ("user." .. accName, aclGetGroup("Mapper")) or isObjectInACLGroup ("user." .. accName, aclGetGroup("Console")) ) then table.insert( Table,v ) end end return Table end
  17. [[[[[[[[[[[[[[ESPAÑOL]]]]]]]]]]]]]]] hola, eh visto en muchos servidores que los chats de las ciudades estan divididos, asi sale en el chat (LS)TarkFox: este es un ejemplo y solo los de LS lo leen y (SF) (LV) igual.. y tambien eh visto que los admin de Lv5 pueden ver los chat de todos lados, LS SF LV LocalChat y todo eso, me dirian como encontrarlo, o como hacerlo?? porfavor, gracias. [[[[[[[[[[[[[English]]]]]]]]]]]]]]]]]]] hello, eh seen in many servers chats cities are divided, so it goes in chat (LS) TarkFox: this is an example only and read it and LS (SF) (LV) equal .. and eh also seen that Lv5 admin can see the chat from all sides, LS SF LV LocalChat and all, would say me how to find or how to do it? please thanks
  18. [[[[[[[[[[[[[[[[[[[[Español]]]]]]]]]]]]]] Hola, vengo por lo siguiente, tengo un servidor Role play, pero tengo unos bugs, el de policia, no me da el palo para arrestar y no me cambia al team de policia, el de taxista, me da a seleccionar el skin, pero no me da el vehiculo, esto me pasa en todos los jobs y cuando me cambio de /criminal a STAFF o a otros teams, o me cambio el pj, me quitan las armas que tengo, como reparo esos bugs?, alguien me ayuda en mi servidor o respondanme please Skype: Tark_Fox
×
×
  • Create New...