-
Posts
70 -
Joined
-
Last visited
-
Days Won
2
Everything posted by AaroN⍩
-
1- Update your debian Sudo apt-get update Sudo apt-get upgrade
-
It doesn't work like that, otherwise everyone could copy servers, only client-side resources are stored on your computer, server-side resources are not stored on your computer.
-
you are using localplayer, to do it remotely you must pass the specific user parameter GetPlayerAccount
-
Hello, I have a question, I hope someone can help me, since I did not find any information, or maybe you can give me a workaround, I would like to know if mtaserver supports rcon remote connection to send commands externally. -I am developing a "Web Console" so I need to know this, so far I have done some testing using phpsdk, but you need to have a lua script on the server running for it to work.
-
Does this happen on all servers? Did you try disabling your firewall or giving permissions? your antivirus could also be the cause
-
Give us more information
-
Check that the mtaserver.conf file is located at the path: server\mods\deathmatch\mtaserver.conf
-
Example 4: This example displays a chat message to a single user called someguy. OutputChatBox -- Find the player element for the player called 'someguy' myPlayer = getPlayerFromName ( "someguy" ) -- If a player was found called 'someguy' then... outputChatBox ( "message displayed to a specific user", myPlayer )
-
WarpPedIntoVehicle
-
Descarga este script, esta en la comunidad Link : Community
-
Debes crear un archivo server.Lua y logicamente el meta.
-
Utiliza este , funciona correctamente : ------------------------- -- Criado por #Dr.zika -- -- Editado Por #Ennzo -- -- Editado Por #AaroN ------------------------- Drzika = {} function CreateVehicle (source) account = getPlayerAccount(source) accname = getAccountName(account) if( accname == "jose" ) then -- Ejemplo "Jose" es el nombre de la cuenta que tiene permitido usar el comando. if getElementData (source, "Pegou", true) then outputChatBox ('#FF7300Aguarde #ffffff1 #FF7300minuto.',source,255,255,255,true) return end if isElement(Drzika[source]) then destroyElement (Drzika[source]) Drzika[source] = nil end local x,y,z = getElementPosition (source) local Cars = 461 Drzika[source] = createVehicle (Cars,x,y,z) warpPedIntoVehicle (source,Drzika[source]) setElementData (source, "Pegou",true) setTimer (setElementData, 10000, 1, source, "Pegou", false) end end addCommandHandler ("get", CreateVehicle) -- Comando function DestroyVeiculo () destroyElement (Drzika[source]) end addEventHandler ("onPlayerLogout", root, DestroyVeiculo) addEventHandler ("onPlayerQuit", root, DestroyVeiculo) addEventHandler ("onPlayerWasted", root, DestroyVeiculo)
-
Puedes hacerlo modificando el script, revisa la wiki DestroyElement y IsElement Al parecer eres nuevo, asi que encontre un script en la comunidad y lo modifique para lo que necesitas , aqui esta: ------------------------- -- Criado por #Dr.zika -- -- Editado Por #Ennzo -- -- Editado Por #AaroN ------------------------- Drzika = {} function CreateVehicle (source) local account = getPlayerAccount(source) local accname = getAccountName(account) if( accname == "jose" ) then -- Ejemplo "Jose" es el nombre de la cuenta que tiene permitido usar el comando. if getElementData (source, "Pegou", true) then outputChatBox ('#FF7300Aguarde #ffffff1 #FF7300minuto.',source,255,255,255,true) return end if isElement(Drzika[source]) then destroyElement (Drzika[source]) Drzika[source] = nil end local x,y,z = getElementPosition (source) local Cars = 461 -- ID Del Vehiculo Drzika[source] = createVehicle (Cars,x,y,z) warpPedIntoVehicle (source,Drzika[source]) setElementData (source, "Pegou",true) setTimer (setElementData, 60000, 1, source, "Pegou", false) end end addCommandHandler ("get", CreateVehicle) -- Comando function DestroyVeiculo () destroyElement (Drzika[source]) end addEventHandler ("onPlayerLogout", root, DestroyVeiculo) addEventHandler ("onPlayerQuit", root, DestroyVeiculo) addEventHandler ("onPlayerWasted", root, DestroyVeiculo)
-
Para evitar el Spam podrias utilizar un SetTimer asi solo le permitira crear un auto cada determinado tiempo.
-
Utiliza esto : function onVehicleExplode () setTimer(destroyElement, 5000, 1, source) --Elimina cualquier vehiculo explotado en 5 segundos. end addEventHandler ( "onVehicleExplode", getRootElement(), onVehicleExplode )
-
Estando en un grupo acl personalizado solo el podra sacarlo. pero si quieres hacerlo sin acl simplemente tendras que hacerle un script personalizado para este usuario en especifico, simplemente utiliza un IF para comprobar si el usuario que ejecuto el comando es el permitido. Este seria el script: function crear(player) local account = getPlayerAccount(player) local accname = getAccountName(account) if( accname == "jose" ) then -- Ejemplo "Jose" es el nombre de la cuenta que tiene permitido usar el comando. local x, y, z = getElementPosition (player) createVehicle (402, x, y + 5, z) -- 402 Es el ID del vehiculo. end end addCommandHandler ("get", crear) -- get es el comando a utilizar.
-
Hola, Te comento que para hacer esto debes utilizar el ACL y crear un Grupo nuevo y meter al usuario ahi , luego simplemente agregas una validación en tu script para verificar que dicho usuario pertenezca al Grupo ACL, si es asi entonces le dara el auto sino simplemente lo denegara. Access_Control_List
-
Hello, You must contact the administrators of said server. -You can try downloading the server again though.
-
Hello, you do this by modifying your Acl.xml file.
-
Disable SSL in your MYSQL configuration file. Location : /etc/mysql/my.cnf 1-Delete the *.pem certificate and key files in the MySQL data directory. 2-Start MySQL with SSL option turned off. This can be done by adding a line entry: ssl=0 in the my.cnf file.
-
Verify that the installed libraries correspond to x64, reinstall the libraries Install MTASA Server Linux
-
Hello, install a Clean ACL.XML, remove any script that someone has passed you, it is possibly malicious and that's why you get admin permissions even if you haven't provided them yet.