Jump to content

DarkAruna97

Members
  • Posts

    18
  • Joined

  • Last visited

Details

  • Gang
    asdasd

Recent Profile Visitors

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

DarkAruna97's Achievements

Square

Square (6/54)

0

Reputation

  1. Hola queria saber como puedo hacer para solucionar un bug en este scripts porque al colocar la cantidad de slots a comprar funciona bien cuesta $5000 money pero al colocar -1 slots negativos el servidor te regala o entrega $5000 money por slots alguna solucion para solucionar ese bug para que no entregue cash al colocar slots negativos y salga "No puedes comprar slots menor a (1)" function buyslots( number ) local account = source:getAccount ( ) if not account:isGuest ( ) then local moneytotal = tonumber( number ) * 5000 if getPlayerMoney( source ) >= moneytotal then local mygang = getPlayerGroup(source) if mygang then addGroupSlots( mygang, number ) outputChatBox("Has comprado: "..number.." slots para tu grupo",source,0,200,0,true) source:takeMoney ( moneytotal ) addActionReg( source, "Buy "..number.." slots to group: "..mygang) end else outputChatBox("No tienes dinero suficiente para comprar esa cantidad de slots",source,200,0,0,true) end end end addEvent("buyslotsforgroup",true) addEventHandler("buyslotsforgroup",ELEMENTOGLOBAL,buyslots)
  2. Hola si quisiera saber cuantos nucleos, memoria ram y disco rigido necesito para correr un servidor de mta dayz. Con una cantidad de 50 slots para que no halla lag? Alguien me ayuda que vps corresponde
  3. Hola busco algún host que tenga metodo de pago de Cuenta Digital o Dinero Mail para Argentina, Que no sea BBhosting porque tube un hosting en esa empresa y anda lag.
  4. Debe ser ese el problema, agrega un "or" a la variable needengine para solucionarlo. En donde le coloco el "or" local veh = getPedOccupiedVehicle(getLocalPlayer()) if veh then local maxfuel = getElementData(veh, "maxfuel") local fuel = getElementData(getElementData(veh, "parent"), "fuel") local needengine = getElementData(veh, "needengines") local needtires = getElementData(veh, "needtires") local needparts = getElementData(veh, "needparts") local engine = getElementData(getElementData(veh, "parent"), "Engine_inVehicle") or 0 local tires = getElementData(getElementData(veh, "parent"), "Tire_inVehicle") or 0 local parts = getElementData(getElementData(veh, "parent"), "Parts_inVehicle") or 0 local offset = dxGetFontHeight(1.02, "default-bold") local w = dxGetTextWidth(engine .. "/" .. needengine .. " Engine", 1.02, "default-bold") if engine == needengine then r, g, b = 0, 255, 0 else r, g, b = 255, 0, 0 end dxDrawText(engine .. "/" .. needengine .. " Engine", screenWidth * 0.5 - w / 2, screenHeight * 0, screenWidth * 0.5 - w / 2, screenHeight * 0, tocolor(r, g, b, 220), 1.02, "default-bold") local w = dxGetTextWidth(tires .. "/" .. needtires .. " Tires", 1.02, "default-bold") if tires == needtires then r, g, b = 0, 255, 0 else r, g, b = 255, 0, 0 end dxDrawText(tires .. "/" .. needtires .. " Tires", screenWidth * 0.5 - w / 2, screenHeight * 0 + offset, screenWidth * 0.5 - w / 2, screenHeight * 0 + offset, tocolor(r, g, b, 220), 1.02, "default-bold") local w = dxGetTextWidth(parts .. "/" .. needparts .. " Tank Parts", 1.02, "default-bold") if parts == needparts then r, g, b = 0, 255, 0 else r, g, b = 255, 0, 0 end
  5. Hola a todos, Quisiera saber donde esta la falla en la linea 1248 como me señala el Debugscript 3
  6. No se empeze a hacer cosas
  7. Como podria arreglar este script por favor ayudemen ya casi esta listo gracias a Tomas function onPlayerWasted(_,killer,weapon) namekiller = getPlayerName(killer) namemuerto = getPlayerName(source) weaponn = tostring(weapon) triggerClientEvent("onRollMessageStart", getRootElement(), (namekiller.." mato a: "..namemuerto.." con " tostring.., 255, 0, 0) end addEventHandler("onPlayerWasted",getRootElement(),onPlayerWasted)
  8. Debería funcionar, pero... ¿ no quedaría un poco estúpido que diga [VIP-Pedro] Usted ha usado el Kit de Vip ? Si lo pusieras en global debería decir [VIP-Pedro] Ha usado el kit de Vip, es una opinión nada más. Si dsp me di cuenta de enviarlo jaja, porque tengo 2 carpetas iguales que una la subi y la otra la estoy editando para ver en mi sv local.
  9. una pregunta asi sirve? outputChatBox("#FFff00[VIP-#ff0000"..name.."#FFff00] #FFFFFFUsted ha usado el Kit de Vip", getRootElement(), 255, 255, 255 , true)
  10. Listo ya lo solucione, otra cosa una pregunta Como tendria que hacer para que este mensaje que sale al sacarse cosas al panel lo puedan leer todo, Es decir que salga en chat publico o Global Chat, para que todos se den cuenta que tal usuario se esta giveando tal cosa del panel porque ya logre que salga el nombre con el ..name.. function BuyWeaponOnServer(weapon_name,data,value) name = getPlayerName ( source ) if(weapon_name == "Equiparme") then setElementData(source, "MAX_Slots" , 125) setElementData(source, "CZ 550", 1) setElementData(source, "CZ 550 Mag", 25) setElementData(source, "M4", 1) setElementData(source, "M4 Mag", 260) setElementData(source, "Milk", 2) setElementData(source, "Pizza", 2) setElementData(source, "Medic Kit", 2) setElementData(source, "Morphine", 2) setElementData(source, "Blood Bag", 1) setElementData(source, "Infrared Goggles", 1) setElementData(source, "Civilian[F] Clothing", 1) setElementData(source, "Map", 1) setElementData(source, "GPS", 1) setElementData(source, "Toolbox", 1) setElementData(source, "PDW", 1) setElementData(source, "PDW Mag", 100) setElementData(source, "Night Vision Goggles", 1) setElementData(source, "Radio Device", 1) setElementData(source, "Watch", 1) outputChatBox("#FFff00[VIP-#ff0000"..name.."] #FFFFFFHa usado el equipo automatico", source, 255, 255, 255 , true) end
  11. si, si estoy en el ACL, pero al precionar F10 no salta el cuadro osea el menu del vip
  12. Hola a todos quisiera saber en donde esta la falla porque al precionar F10 no salta el Cuadro del Bin Key si alguien me ayuda le paso el resource completo con el Client y el Server. function showPanel2(thePlayer) accountname = getAccountName (getPlayerAccount(thePlayer)) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "VIP" ) ) then triggerClientEvent (thePlayer, "ShowGUI", getRootElement()) else outputChatBox("#ff6464Solo usuarios V.I.P pueden abrir el Panel Vip.",thePlayer,255,125,0,true) end end function onResStart () for index, player in ipairs ( getElementsByType ( "player" ) ) do bindKey ( player, "F10", "down", showPanel2 ) end end addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource() ), onResStart) function onPlayerJoin () bindKey ( source, "F10", "down", showPanel2 ) end addEventHandler ( "onPlayerJoin", getRootElement(), onPlayerJoin) function cleanAll (player) for index, player in ipairs ( getElementsByType ( "player" ) ) do unbindKey ( player, "F10", "down", showPanel2 ) end end addEventHandler ( "onResourceStop", getResourceRootElement ( getThisResource() ), cleanAll)
×
×
  • Create New...