-
Posts
163 -
Joined
-
Last visited
-
Days Won
3
Everything posted by alex17"
-
si te falta el server.lua me das a pensar que dicho script es robado y acá nadie te ayudará con algo que no es tuyo
-
function bind(_, state) if state == "down" then bindKey("v", "down", myFunction) else unbindKey("v", "down", myFunction) end end bindKey("lctrl", "up", bind) bindKey("lctrl", "down", bind) function myFunction() unbindKey("v", "down", myFunction) end
-
esa linea esta llamando la funcion IsPlayerInFaction del scripts factions si te da ese error es por que el script no esta encendido
-
seguramente es por que tu codigo es lado client, proba con ewto addCommandHandler( "taximetro", function( ) local vehiculo = getPedOccupiedVehicle ( localPlayer ) local vehiculos = getVehicleName ( vehiculo ) if vehiculos == "Taxi" then if exports.factions:IsPlayerInFaction(localPlayer,10) then setElementData( vehiculo, "distancia", type( getElementData( vehiculo, "distancia" ) ) ~= "number" and 0 or false ) end end end )
-
[Ayuda] Blip attached bug - El blip no se mueve con el vehículo
alex17" replied to Razor70538's topic in Scripting
pues si no nos muestra el codigo no podemos hacer mucho para ayudarte -
local team = "Admin" function MarkerHit ( hitPlayer) local pteam = getPlayerTeam(hitPlayer) local nteam = getTeamName(pteam) if nteam == team then --- --- --- --- --- end end addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit )
-
function DarExp(Jugador, cmd,Usuario,Cantidad) local CuentaJugador = getAccountName (getPlayerAccount(Jugador)) if isObjectInACLGroup ( "user." .. CuentaJugador, aclGetGroup ( "Admin" ) ) then local Nombrejugador = getPlayerFromName(Usuario) local lvl = getElementData(Nombrejugador,"Nivel") local Exp = getElementData(Nombrejugador,"Experiencia") local progresoMaximo = getElementData(Nombrejugador, "ProgresoMaximo") local newexp = Exp + Cantidad setElementData(Nombrejugador,"Experiencia",newex) if newex >= progresoMaximo then setElementData(Nombrejugador, "Nivel", lvl + 1) end end end addCommandHandler("exp", DarExp)
- 2 replies
-
- sistemanivel
- nivel
-
(and 1 more)
Tagged with:
-
triggerServerEvent ( client, "SaberRamaTrigger", client, pia )
- 9 replies
-
- 1
-
-
- devolución
- varios
-
(and 1 more)
Tagged with:
-
function Siguientemarker1 (element) if element == localPlayer then if timer then killTimer(timer) timer = nil end timer = setTimer(Siguientemarker2, 30000, 1) setElementFrozen ( veh, true ) ------Aca deberia congelar siempre outputChatBox ("----------------------------",255,0,0, true) outputChatBox ("Cargando..." ,0,255,255, true) outputChatBox ("----------------------------",255,0,0, true) end end no veo en que parte defines que es "veh"
-
[LF] Scripter for Roleplay Server [Paid/Non-Paid]
alex17" replied to VinoGan's topic in Looking for staff
what type script need you? -
opino igual que la mayoria de aca que el unico niño que se cree "maduro" es gonzalo tuve un mal momento contigo pedias ayuda por skype y ensima te enojas por que uno no le entra a tus bromitas, si vas a pedir ayuda nunca esta demas perdir porfavor y si los demas se meten es por que esto es un foro publico si no quieres que nadie comente tus post para eso existe el mensaje privado.
-
function dxDrawPlayers() local players = 0 for k, player in ipairs(getElementsByType("player")) do local d = getElementDimension(player) local t = getPlayerTeam(player) if d == 10 and t and getTeamName(t) == "Vips" then players = players + 1 end end dxDrawText("Jugadores : "..players, ........) end addEventHandler("onClientRender", root, dxDrawPlayers)
-
error mio cambia getElementType por getElementsByType
-
torres = {} function CreateVisor ( thePlayer, commandName ) if ( thePlayer ) then local x, y, z = getElementPosition ( thePlayer ) if torres[thePlayer] then destroyElement(torres[thePlayer]) torres[thePlayer] = nil end torres[thePlayer] theObject = createObject ( 3279, x + 5, y + 0, z + -1, 0, 0, 0 ) if ( torres[thePlayer] ) then outputConsole ( "Visor puesto", thePlayer ) else outputConsole ( "Visor no puesto", thePlayer ) end end end addCommandHandler ( "visor", CreateVisor )
-
function onStartorLogin (_,acc) for k, player in ipairs(getElementType("player")) do local acc = getPlayerAccount(player) if acc then setElementData ( player, "car", getAccountData ( acc, "car" ) or false ) setElementData ( player, "moto", getAccountData ( acc, "moto" ) or false ) setElementData ( player, "air", getAccountData ( acc, "air" ) or false ) end end end addEventHandler("onPlayerLogin", getRootElement(), onStartorLogin ) function onResRestrt (_,acc) for k, player in ipairs(getElementType("player")) do local acc = getPlayerAccount(player) if acc then setAccountData ( acc, "car", getElementData ( player, "car" ) or false ) setAccountData ( acc, "moto", getElementData ( player, "moto" ) or false ) setAccountData ( acc, "air", getElementData ( player, "air" ) or false ) end end end addEventHandler("onResourceStop", getRootElement(), onResRestrt ) los eventos onResourceStop y onResourceStart no tienen como argumentos a un jugador ni a una cuenta utiliza el codigo que te acabo de pasar
-
you need add this function in your script function isMouseInPosition ( x, y, width, height ) if ( not isCursorShowing( ) ) then return false end local sx, sy = guiGetScreenSize ( ) local cx, cy = getCursorPosition ( ) local cx, cy = ( cx * sx ), ( cy * sy ) if ( cx >= x and cx <= x + width ) and ( cy >= y and cy <= y + height ) then return true else return false end end
-
no tiene que ver nada con el foro de mta , solo es un grupo de la comunidad latina de mta donde comparten sus cosas , etc , etc , etc , que tan seguro sea comprarle scripts a alguien de ese grupo pues dependerá de a quien le estés comprando eso ya debes fijarte tu mismo que el scripter sea confiable y de buena reputación .
-
pues crea una funcion en el script que sera compilado que cambie lo que tu quieres y en el otro script exportas esa funcion
-
es dificil ayudarte ya que necesitariamos ver el script completo en lo que tu nos muestras no se observa nada que pueda ayudar a resolver tu error
-
no es necesario usar getElementPosition solo usa playSound y ya
-
no pero hablame al privado y venos una manera en la que podamos trabajar
-
pues tienes que poner localplayer como argumento en getElementPosition pero como esta en client solo lo escuchara el jugador para que lo escuchen todo tendras que hacerlo en server y reproducir el sonido con un trigger a client ya apage la pc asi que mañana te paso un ejemplo