Jump to content

UserToDelete

Members
  • Posts

    766
  • Joined

  • Last visited

Everything posted by UserToDelete

  1. Your network are so slow, if not, try to update MTA
  2. It worked fine when I had Windows 8. Although I held my server on Windows 8 over a year ago. MTA Server are not fully compatible with W10 i think, are you running x64 or x32?
  3. in a another Virtual machine with another OS works?, Windows 10 are not completly compatible with MTA
  4. Because single player you must play alone (or with yourself (imaginary friends)), and in MTA with real friends xDDD
  5. Try with manual script, highly recommendable engineImportTXD --TXD engineLoadTXD --TXD engineLoadDFF --DFF engineReplaceModel --DFF
  6. Can be an windows 10 hardware/software compatibility issue, i don't know really.. With another OS works? Use VM VirtualBox for test it (if processor support virtualization)
  7. Exactly! when player die, recreate it, just addEventHandler("onPlayerWasted", root, function () --blip createBlipAttachedTo ( element elementToAttachTo, [int icon=0, int size=2, int r=255, int g=0, int b=0, int a=255, int ordering=0, float visibleDistance=99999.0, visibleTo = getRootElement()] ) createBlipAttachedTo(source,0,1) end )
  8. puedes hacer un ejemplo con m iscript : function SkinCuenta ( player) if getElementType ( player ) == "player" then local registro = getPlayerAccount(player) local cuenta = getAccountName(registro) if ( registro and cuenta or "") == "Death" then setElementModel(player, 299) setElementData(player, "skin",299) outputChatBox("#5000FF[skin]:#FFFFFFTes has puesto tu Skin",player,255,255,255,true) else outputChatBox("#5000FF[skin]:#FFFFFFAcceso Denegado",player,84,84,84,true) end end end addCommandHandler("skin",SkinCuenta) la proxima vez usa el tag de lua local spam = {} function SkinCuenta ( player) if getElementType ( player ) == "player" and (spam[player] or 0) --[[Compruebo si existe, sino 0]] < getTickCount() then local cuenta = getAccountName(getPlayerAccount(player)) if cuenta or "" == "Death" then setElementModel(player, 299) setElementData(player, "skin",299) outputChatBox("#5000FF[skin]:#FFFFFFTe has puesto tu Skin",player,255,255,255,true) spam[player] = getTickCount()+5*60000 --5 minutos de antispam else outputChatBox("#5000FF[skin]:#FFFFFFAcceso Denegado",player,84,84,84,true) end end end addCommandHandler("skin",SkinCuenta) Antispam hecho para que cuando cambie la skin, se ponga antispam, puedes modificarlo cambiando el spam[player] de sitio y modificando los valores, getTickCount() devuelve en MS
  9. i think you must specify any resource, screenshoot, any more
  10. Y el mio te da la vida en funcion del nivel que tengas, independientemente de un maximo, pero los valores son los mismos, ya que si tienes nivel 5, te pone 25.000 y si tienes nivel 15, te pone 35.000 de sangre spam = {} function NivelesPremio(thePlayer) if spam[thePlayer] == nil then spam[thePlayer] = 0 end if spam[thePlayer] < getTickCount() then local nivel = getElementData(thePlayer,"level") setElementData(thePlayer, "blood", 20000+((getElementData(thePlayer,"level") or 1)*1000)) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada a "..tostring(getElementData(thePlayer, "blood")).."!", thePlayer, 0, 0, 0,true) spam[thePlayer] = getTickCount()+10*60000 else outputChatBox("#5000FF[sistema de Niveles]#FFFFFF: Espera antes de usar este comando! ("..tostring(math.floor(spam[thePlayer]/1000)).." segundos)", thePlayer, 0,0,0,true) end end addCommandHandler("nivel", NivelesPremio)
  11. Tome su script optimizado señor :v spam = {} function NivelesPremio(thePlayer) if spam[thePlayer] < getTickCount() then local nivel = getElementData(thePlayer,"level") setElementData(thePlayer, "blood", 20000+((getElementData(thePlayer,"level") or 1)*1000)) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada a "..tostring(getElementData(thePlayer, "blood")).."!", thePlayer, 0, 0, 0,true) spam[thePlayer] = getTickCount()+10*60000 else outputChatBox("#5000FF[sistema de Niveles]#FFFFFF: Espera antes de usar este comando! ("..tostring(math.floor(spam[thePlayer]/1000)).." segundos)", thePlayer, 0,0,0,true) end end addCommandHandler("nivel", NivelesPremio) tu script esta mal hecho ya que blood y exp sos 2 variables distintas . mejor te puedes explicar con otra funcion mas sencilla acerca del abuso del comando? Lo unico que hice fue multiplicar el nivel por la vida inicial, es lo que hace tu script LOL
  12. Tome su script optimizado señor :v spam = {} function NivelesPremio(thePlayer) if spam[thePlayer] < getTickCount() then local nivel = getElementData(thePlayer,"level") setElementData(thePlayer, "blood", 20000+((getElementData(thePlayer,"level") or 1)*1000)) outputChatBox("#5000FF[sistema de Niveles]#FFFFFF:Vida Aumentada a "..tostring(getElementData(thePlayer, "blood")).."!", thePlayer, 0, 0, 0,true) spam[thePlayer] = getTickCount()+10*60000 else outputChatBox("#5000FF[sistema de Niveles]#FFFFFF: Espera antes de usar este comando! ("..tostring(math.floor(spam[thePlayer]/1000)).." segundos)", thePlayer, 0,0,0,true) end end addCommandHandler("nivel", NivelesPremio)
  13. You used modloader script or your own script with engine loaders?
  14. VortexServers don't know about this cURL command specialy designed for multiserver networks ./mta-server -t --ip {ip} --port {port} --httpport {port} --maxplayers {slots} i sent code to VortexServers but none answer yet back
  15. Looks good, simple and efficient script!
  16. Pero entonces al usar el comando, me recargaria infinitamente la vida como tantas veces lo usara no?
  17. De puta madre!, funciona perfectisimo!, +10 MaquiNote
  18. You can't, because MTA system uses an URL to download, like this example in site of: yourHost/resource/clientFile.lua uses for example.. HTTPURL/resource/clientFile.lua it is not vinculed to any script to execute for that
  19. setPlayerNametagShowing --Blip removal | Remove it from freeroam, or... for k,element in ipairs(getAttachedElements(player)) do if getElementType(element) == 'blip' then destroyElement(element) end end
  20. You must put more information about your server
  21. No entiendo muy bien el 'blood' element, para que gamemode es?
  22. Aparte de la sugestion de Tomas, En español no utilices cosas como "Comphrar Este Obgeto", el resto estaria bien
  23. Tengo un problema con la validacion de un string (vale, el titulo ya lo sabemos todos) Bueno, la cosa es que tengo un string que es "0005025" y quiero que sea un valor real, es decir, que pase a ser "5025" sin los numeros nulos a la izquierda. Tengo este miniloop pero returna false aunque coincida con el 0 realmente STR = "00050" --si coloco "0005025" Da error >> calling 'char' on bad self (value out of range) local XPOS = STR:byte() while STR:char(XPOS) == '0' do STR = STR:gsub("%d", "", 1) XPOS = STR:byte() end STR = STR:gsub("%d", "", 1) local CHECK = STR:char(XPOS) print(CHECK == 0) print(STR:char(XPOS)) --http://rextester.com/runcode
  24. Si es mediante GUI la creacion, usa ValidationString en la GUI Los bugs surgen, y no todos tenemos "VIP-Pro", los desarrolladores mismos deberian buscar los bugs, ya que son los unicos que se saben el codigo 'a pie a pa', Cuando desarrollé mi group system recuerdo haber testado hasta uniendome de guest con el panel GUI (Aun sin logearme, osea, el panel de login de fondo), y nada, no habia ningun exploit de este tipo, el filtro que yo le habia puesto era una comparacion de grupo, es decir, si no era EXACTAMENTE igual el nombre del grupo al asignado, no tenia ningun poder sobre otra gang, por eso digo, que el error es muy raro
×
×
  • Create New...