-
Posts
302 -
Joined
-
Last visited
Everything posted by alex17
-
primero debes explicar mejor dices que mueran al entrar si no son del clan " entrar a donde " y tambien que systema de clanes usas
-
me falto un end gracias por la corrección venad
-
no entendi muy bien lo que quieres pero puedes guiarte de esto asi obtienes la posicion del player al que le apuntas function target() local target for i, thePlayer in ipairs ( getElementsByType("player") ) do target = getPedTarget ( getLocalPlayer() ) if ( target ) then if ( getElementType ( target ) == "player" ) then local x,y,z = getElementPosition(target) createObject(492,x,y,z) --- aca tu objeto end end end
-
no entendi eso si va en lua ? a que te refieres si es por si es lado client o server es del lado server y te recomiendo el script de venad ya que esta mejor echo y es mas facil de utilizar
-
function respawnVehicles() outputChatBox("#FFFF00*Reiniciando vehiculos vacios en 30s *", root, 255, 255, 255, true) outputChatBox("#0040FF*Respawning All Empty Vehicles in 30s *", root, 255, 255, 255, true) setTimer(function () local vehicles = getElementsByType ( "vehicle" ) outputChatBox("#0EF629*Vehiculos vacios han sido reiniciados*", root, 255, 255, 255, true) outputChatBox("#00ccFf*Empty Vehicles has been respawned*", root, 255, 255, 255, true) for k, vehicle in ipairs ( vehicles ) do if isEmpty( vehicle ) then respawnVehicle ( vehicle ) end end end, 30000, 1) -- edita el tiempo en el qe se respawnean los autos end setTimer(respawnVehicles, 1000000, 0)-- edita el tiempo de diferencia entre cada respawn. Suerte function isEmpty( vehicle ) local passengers = getVehicleMaxPassengers( vehicle ) if (type( passengers ) == 'number') then for seat = 0, passengers do if getVehicleOccupant( vehicle, seat ) then return false end end end return true end
-
le digo que lo purve yo tengo ese y me funciona normal si el problema sigue debe tener otro script que hace que de el problema que tiene
-
prueba con esto addEventHandler("onVehicleExplode", root, function () setTimer(respawnVehicle, 1000, 1, source) end )
-
detectar el sonido creo que no es posible sin embargo lo que puedes hacer es detectar la velocidad a la que se desplaza el jugador si va muy rapido que se le aumente la barra del sonido y si va mas lento que se le disminuya no se me ocurre otra cosa de como hacerlo
-
no hay problema suerte D;
-
si creo que es posible utilizando dxSetRenderTarget
-
hay el problema ya no seria el nametag si no el script de tus ranks
-
yo utilizo el mismo nametag y tube el mismo problema y la forma de como lo ise fue asi y me funciono bien local lvl = getElementData(player, "level") en este caso lo ise con el level system tu remplazalo por tu rangos deberia ser asi local rank = getElementData(player, "ACL") or ""
-
no se me olvido solo puse esa parte del script @XeroxMTA cambia esto local rank = getElementData(localPlayer, "ACL") or "" por esto local rank = getElementData(player, "ACL") or ""
-
Si usas el tag de race aslo de esta forma en la linea 119 creo local rank = getElementData(player, (aca el dato de tus rangos qe no se cual es ) ) dxDrawText (rank.." \n"..getPlayerName(player), sx + 1, sy - offset + 1, sx + 1, sy - offset + 1, tocolor(0,0,0,255), textscale*NAMETAG_TEXTSIZE, "bankgothic", "center", "bottom", false, false, false ) dxDrawColorText( getPlayerNametagText(player), sx, sy - offset, sx, sy - offset, tocolor(r,g,b,textalpha), textscale*NAMETAG_TEXTSIZE, 'bankgothic', 'center', 'bottom' )
-
es muy facil solo pon el los dx el argumento postgui en true y qedara ensima de los botones si lo deseas te ayudo hacer el panel ya que no es muy compliacado
-
no se puede hacer botones con dx es solo cosa de utilisar la imaginacion coloca un boton en la misma posicion de tu dx y le pones alpha 0 asi el boton no se vera
-
te doi un ejemplo para que te des una idea de como puedo hacerlo sWidth, sHeight = guiGetScreenSize() local x = sWidth/1000 local y = sHeight/1000 -- no prestes atenciona esto D; alpha = 85 rulesbtn = guiCreateButton(x*355, y*660, x*103.75, y*61.6, "", false) addEventHandler( "onClientMouseEnter",rulesbtn,function() alpha=0 end) addEventHandler("onClientMouseLeave",rulesbtn,function() alpha=85 end) guiSetAlpha(rulesbtn, 0) function draw () dxDrawRectangle(x*355, y*660, x*103.75, y*61.6, tocolor(0, 255, 0, alpha), false) end
-
para eso necesitas esta funcion dxDrawImageSection
-
had an error on line 1 local acls = { "ORGANIZADOR", "MODERADOR", "ADMINISTADOR"`} function toggleGodMode(thePlayer) local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) for i, v in pairs ( acls ) do if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( v ) ) ) then if getElementData(thePlayer,"invincible") then setElementData(thePlayer,"invincible",false) outputChatBox("[ADMIN] GODMODE DEACTIVATED.",thePlayer,0,255,0) else setElementData(thePlayer,"invincible",true) outputChatBox("[ADMIN] GODMODE ACTIVATED.",thePlayer,0,255,0) end break end end end addCommandHandler("god",toggleGodMode)
-
groups = { "ORGANIZADOR", "MODERADOR", "ADMINISTADOR" } function () local account = getPlayerAccount(thePlayer) if (not account or isGuestAccount(account)) then return end local accountName = getAccountName(account) for i, v in pairs ( groups ) do if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup (v) ) ) then
-
si me explicas mas detalladamente que es lo que quieres que aga cuando le das click al boton te puedo ayudar
-
Lo que isiste no tiene mucho sentido prueva con esto Panel = guiCreateWindow(371, 193, 612, 552, "", false) guiWindowSetSizable(Panel, false) GUIEditor.button[DM] = guiCreateButton(27, 94, 139, 65, "DM", false, Panel) GUIEditor.button[DD] = guiCreateButton(244, 94, 139, 65, "DD", false, Panel) GUIEditor.button[CS] = guiCreateButton(448, 94, 139, 65, "CS", false, Panel) GUIEditor.label[1] = guiCreateLabel(166, 16, 310, 56, "GAMEMODES", false, Panel) guiSetFont(GUIEditor.label[1], "sa-header") guiLabelSetColor(GUIEditor.label[1], 14, 2, 251) Lobby = guiCreateButton(127, 474, 358, 55, "LOBBY", false, Panel) GUIEditor.button[1] = guiCreateButton(27, 217, 139, 65, "RACE", false, Panel) GUIEditor.button[2] = guiCreateButton(244, 217, 139, 65, "BASE", false, Panel) GUIEditor.button[3] = guiCreateButton(448, 217, 139, 65, "BOMB", false, Panel) GUIEditor.button[4] = guiCreateButton(27, 336, 139, 65, "CTF", false, Panel) GUIEditor.button[5] = guiCreateButton(244, 336, 139, 65, "RACE", false, Panel) GUIEditor.button[6] = guiCreateButton(448, 336, 139, 65, "RACE", false, Panel) guiSetVisible(Panel, false) function showPanel () if (guiGetVisible (Panel) == false) then guiSetVisible(Panel, true) elseif (guiGetVisible (Panel) == true) then guiSetVisible(Panel, false) end end bindKey ("F3", "down", showPanel)
-
de nada D;
-
Prueva con esto aver si te sirve addEventHandler ("onClientPlayerDamage",root, function ( attacker ) if ( attacker and getElementType ( attacker ) == "player" ) then if ( attacker ~= source ) then local attackerTeam = getPlayerTeam ( attacker ) local sourceTeam = getPlayerTeam ( source ) if ( attackerTeam == sourceTeam ) then cancelEvent () end end end end )
-
estab bien l oque te pase que bueno que te sirviera saludos !!