 
        Tomas
Members- 
                Posts2,530
- 
                Joined
- 
                Last visited
Everything posted by Tomas
- 
	local kills = {} function Kills(ammo,killer,weapon) if killer then if killer ~= source then if not kills[killer] then kills[killer] = 1 else kills[killer] = kills[killer] + 1 end end end end addEventHandler("onPlayerWasted",getRootElement(),Kills)
- 
	Cambia el setElementPosition,Dimension por spawnPlayer.
- 
	function removePlayerFromTable( player ) if player and nametags[ player ] then for i,v in ipairs(nametags) do if v == player then table.remove( nametags, i ) return end end end end addEventHandler( "nmtgs:onPlayerQuit", getRootElement( ), removePlayerFromTable )
- 
	Pero solo estarás tú en la tabla ya que está en client side, tendrías que tener una global en el server side y sincronizarla con cada cliente.
- 
	Tienen una version del cliente inferior a la que tu pides en las configuraciones.
- 
	local _isElementWithinColShape = isElementWithinColShape function isElementWithinColShape(element, colshapes) if type(colshapes) == "table" then for i = 1, #colshapes do if _isElementWithinColShape(element, colshapes[i] then return true end end return false else return _isElementWithinColShape(element, colshapes) end end
- 
	Nunca creaste radar areas, tienes que usar isElementWithinColShape.
- 
	Pues, usar tablas me parece un poco innecesario, lo puedes hacer con variables asi: local isGod addCommandHandler("godmode", function () isGod = not isGod end ) addEventHandler("onClientPlayerDamage", root, function () if isGod then cancelEvent() end end )
- 
	addEvent ( "onPlayerWasted", true ) addEventHandler ( "onPlayerWasted", root, function (_, theKiller ) if theKiller and not theKiller == source then exports.exp_system:addPlayerEXP ( theKiller, 10) end end )
- 
	Lo que hace ese script es buscar un asiento libre, comenzando por los delanteros, no warpea a algún asiento ya ocupado.
- 
	De la forma normal, no. Aunque podrías moverlo hacia ahí, pero no creo que pueda disparar.
- 
	RPG or RPG pass pack for my server.Tomas replied to winklennart's topic in Ayuda relacionada al cliente/servidor Es ilegal.
- 
	local duelKills = {} local duelDim = 69 local duelInt = 72 addEventHandler("onPlayerWasted", root, function (attacker) if attacker and attacker ~= source then if getElementType(attacker) == "player" then if getElementDimension(attacker) == duelDim and getElementDimension(source) == duelDim then if getElementInterior(attacker) == duelInt and getElementInterior(source) == delInt then duelKills[attacker] = ( duelKills[attacker] or 0 ) + 1 end end end end end )
- 
	Puedes estar viendo al ped y taparlo con el draw.
- 
	setElementSyncer, de todas formas es mejor usar client side.
- 
	RPG or RPG pass pack for my server.Tomas replied to winklennart's topic in Ayuda relacionada al cliente/servidor Los desarrolladores de Valhalla no permiten que se distribuya su código, no lo pueden usar sin su permiso.
- 
	Puedes crear el ped en algún lugar del mundo y con el cam2rt dibujarlo en la pantalla.
- 
	En ese caso podrias utilizar: for i = 1, #gui.botones do guiSetVisible(gui.botones[i], false) end
- 12 replies
- 
	
		- sin elementdata
- hacer funcionar
- 
					(and 1 more) 
					Tagged with: 
 
 
- 
	Publica el codigo.
- 12 replies
- 
	
		- sin elementdata
- hacer funcionar
- 
					(and 1 more) 
					Tagged with: 
 
 
