-
Posts
1,027 -
Joined
-
Last visited
Everything posted by BorderLine
-
cierto. Gracias.. Y funciono o no?? si funciono minimo agradecer la ayuda
-
debes ponerle los argumentos a la funcion.. por ejemplo function comando(player,comand,state) if (state=abrir) then moveObje.. elseif (state = cerrar ) then moveObject else outputChatBox("Syntaxis: /comando (abrir/cerrar)",player,255,255,255) end end addCommandHanlder("puerto",comando) lo ise a la rapida.. modelalo
-
podrias usar esta funcion. Ve si funciona esa o remoldealo function llamar(player,cmd,playername,text) if playername and text then local player2 = findPlayerByName(playername) if player2 then outputChatBox ("..(text)..", player2, 255, 0, 0) end end end addCommandHandler("llamar",llamar) function findPlayerByName (name) local player = getPlayerFromName(name) if player then return player end for i, player in ipairs(getElementsByType("player")) do if string.find(string.gsub(getPlayerName(player):lower(),"#%x%x%x%x%x%x", ""), name:lower(), 1, true) then return player end end return false end
-
function quitar() showPlayerHudComponent ( "armour", false ) showPlayerHudComponent ( "health", false ) showPlayerHudComponent ( "money", false ) showPlayerHudComponent ( "clock", false ) showPlayerHudComponent ( "weapon", false ) showPlayerHudComponent ( "ammo", false) showPlayerHudComponent ( "money", false ) showPlayerHudComponent ( "wanted", false ) showPlayerHudComponent ( "radar", true ) end addEventHandler("onClientPlayerJoin",getLocalPlayer(),quitar) addEventHandler("onClientPlayerWasted",getLocalPlayer(),quitar) addEventHandler("onClientPlayerSpawn",getLocalPlayer(),quitar) intenta eso y cuando reinicies script matate.. Deberia funcionar
-
local x,y = guiGetScreenSize() guiCreateStaticImage( 0, 0, x, y, "imagename.png", false ) Algo como esto deberia funcionar
-
setWeaponProperty (27 , "pro", "flags", 0x000800 ) Ejemplo para la doble spaz Pero te hago una acotacion. Esto sirve para todo el server, no solo para algun usuario en especial. ya que no tiene el argumento de player en serverside. PD: Mira las flags, ve si existe algo para tomar el arma con 2 manos
-
Honestly. deco suck. just make more lag the game. Now dont exist maps without deco cuz all "mapers" make maps with 2 or more mb with deco. that isnt really good. About all your maps dc, im very exited cus this is the first without deco.. i like it so keep it with good work!!
-
dentro de la misma funcion spawnBot , existe un argumento para ponerlo en algun team. mira el 8vo argument https://wiki.multitheftauto.com/wiki/Slo ... t#spawnBot y sino usa https://wiki.multitheftauto.com/wiki/Slo ... setBotTeam
-
Nose si esta funcion podria funcionar. Deberas mirar las flags setWeaponProperty
-
No confundas las dimenciones con los interiores. Reemplaza y ve si funciona de esta manera addCommandHandler("afk", function (thePlayer) if getElementData(thePlayer,"afk_state") == "back" then triggerClientEvent(thePlayer,"god_mode",thePlayer) setElementFrozen(thePlayer,true) setElementDimension(thePlayer,1) setPlayerNametagText (thePlayer, "|AFK|" .. getPlayerName (thePlayer)) outputChatBox(getPlayerName(thePlayer).." is AFK!",getRootElement(),255,50,0) setElementData(thePlayer,"afk_state","afk") if getPedOccupiedVehicle(thePlayer) then fixVehicle(getPedOccupiedVehicle(thePlayer),true) setElementFrozen(getPedOccupiedVehicle(thePlayer),true) setVehicleDamageProof(getPedOccupiedVehicle(thePlayer),true) setElementDimension(getPedOccupiedVehicle(thePlayer),1) end elseif getElementData(thePlayer,"afk_state") == "afk" then setElementData(thePlayer,"afk_state","back") triggerClientEvent(thePlayer,"disable_god_mode",thePlayer) setElementFrozen(thePlayer,false) setElementDimension(thePlayer,0) setPlayerNametagText (thePlayer, "" .. getPlayerName (thePlayer)) outputChatBox(getPlayerName(thePlayer).." is back!",getRootElement(),0,255,0) if getPedOccupiedVehicle(thePlayer) then setElementFrozen(getPedOccupiedVehicle(thePlayer),false) setVehicleDamageProof(getPedOccupiedVehicle(thePlayer),false) setElementDimension(getPedOccupiedVehicle(thePlayer),0) end end end)
-
quiere que se active cada 10 minutos
-
https://wiki.multitheftauto.com/wiki/Ser ... _functions startResource stopResource setTimer Dale derechos de admin al script y es Serverside Suerte
-
Again same user uploading Laser but edited https://community.multitheftauto.com/ind ... ls&id=5913 DONE
-
jaja, todo esos son detalles que se cometen en la programacion.. pero lo importante es que esta arreglado
-
lo pusiste en serverside? y al ultimo codigo que te dio Alex le falta un end addEventHandler("onResourceStart", getResourceRootElement( getThisResource() ), function() local allTeams = getElementsByType ( "team" ) for index, theTeam in ipairs(allTeams) do setTeamFriendlyFire ( theTeam, false ) end end ) Intenta asi
-
quieres no hacerle daños a los jugadores del mismo team?? si es asi debes cambiar setTeamFriendlyFire ( theTeam, true ) por el false setTeamFriendlyFire ( theTeam, false )
-
Yes. Is a compiled script. I changed the extension. Tellme what you need . I will edit then i send you by PM
-
probaste usando setOcclusionsEnabled ??
-
La verdad en base a Experiencias propias, yo no vuelvo a prestar mis servicios como scripter. Una vez lo hice gratuitamente. no me interesa el dinero. Lo ago por amor al arte. Pero me jugaron mal y me botaron y se kedaron cno todos los scripts. Por lo menos estaban compilados asi que mucho no ivan a hacer. Si quieres ayuda deberias primero entrar a ganarte confianza. Veo que no llevas mucho aqui. Tambien deberias mencionar que servidor y que tienes hecho y que pretendes llegar a hacer. Suerte
-
Laser Script. Just change the size of marker to look like flashlight https://community.multitheftauto.com/index.php?p= ... ls&id=5887 DONE
-
Relativamente es lo Mismo. podria sugerir algo para que se vea mejor a vista del usuario addCommandHandler("comandos", function (thePlayer) outputChatBox ( "#002EB8**---Comandos #FF0000Disponibles---**", thePlayer, 255, 255, 255, true) setTimer(outputChatBox,2000,1,"#002EB8*Piloto#C2C2C2 /drift[1-7] /salto /recta /estacionamiento", thePlayer, 255, 255, 255, true) end )
-
Como actualizar mi servidor
BorderLine replied to angelberge's topic in Ayuda relacionada al cliente/servidor
Esto es para servidores Linux. @angelberge fijate si tu servidor es Linux o Windows. Para que instales el servidor adecuado y no tengas mayores problemas -
Como actualizar mi servidor
BorderLine replied to angelberge's topic in Ayuda relacionada al cliente/servidor
descargas eso y reemplazas los archivos. Aunque deberias pedirle a los de servicio tecnico del host que te lo actualizen. Eso si respalda la base de datos, lista de bans y acl por si acaso. -
Como actualizar mi servidor
BorderLine replied to angelberge's topic in Ayuda relacionada al cliente/servidor
https://nightly.multitheftauto.com/ -
createMaker() onClientMarkerHit --y nose si funcione exactamente getSoundMetaTags ( )