-
Posts
2,869 -
Joined
-
Last visited
Everything posted by Alexs
-
Hola a Todos, vengo aca para consultar sobre la function que utiliza el panel de admin para poner el Stat de Health en 1000 o las Armas y todo eso, Me explico, en el panel a clickear "Set Stats" permite abrir una ventana que premite editar cosas como Habilidad de Armas, Health, Stamina, etc... Que funcion sirve para eso?
-
Seguro que ese script es tuyo?? que dice el debugscript 3 ??
-
¿Como se hace para que un objeto sea transpasable?
Alexs replied to ~Zeus~'s topic in Ayuda relacionada al cliente/servidor
Doubleside es para que la textura afecte ambos lados del objeto y no sea invisible por detras, no para que no colisione. -
Ingles para las funciones fiijos de MTA (giveWeapon, etc...) y conceptos como if then else, pero strings y variables no reconocen idioma, mis functions y variables a veces se llaman jodajoda y no pasa nada....
-
Hola a Todos, Tengo una Duda, hoy en la mañana llegue y mi servidor habia dado crash, lo que es incomodo por que hay q apagar y encender algunos scripts si eso pasa, Cuales son los motivos mas normales para un crash? Tendra algo que ver con el sistema de Auto-Respawn que puse hace poco?
-
zombieProof es para radar-areas no Colshapes: addEvent( "onZombieSpawn", true ) function RanSpawn_Z ( gx, gy, gz, rot) local safezone = 0 local allradars = getElementsByType("radararea") for theKey,theradar in ipairs(allradars) do if getElementData(theradar, "zombieProof") == true then if isInsideRadarArea ( theradar, gx, gy ) then safezone = 1 end end end
-
function refreshData() local x,y,z = getElementPosition( localPlayer ) or "N/A" local location = getZoneName ( x,y,z ) or "N/A" guiSetText( perDataLabel[5], "Position : "..x..","..y..","..z ) guiSetText( perDataLabel[6], "Location : "..location ) end you use spaces in x, y, z....
-
createColCuboid
-
mmm, seria Client Side para no afectarlos a todos, usa: setWeather y colshapes, con el evento "https://wiki.multitheftauto.com/wiki/OnClientColShapeHit"
-
Ya te dije, asi como esta es imposible, debes editar el script
-
usa giveWeapon --para dar armas getElementModel --Para saber que zombie mato.
-
usa isObjectInACLGroup.
-
usa el Spawn de 50p, el cual usa Xml para crear sus spawn, asi que deberias re-estructurar la funcionalidad del script, es mejor hacerse uno propio
-
Deberia..., quiza algun argumento mal, pero deja probarlo.
-
no funcionaria, cuando se supone que se activa la funcion?
-
los Zombies son Peds, o que use isPedBot
-
mmm.. si los peds son zombies esto podria funcionar: function itemcre ( ) local zx,xy,zz = getElementPosition ( source ) --Consigue la posicion del zombie, "source" es un argumento que varia segun el evento. createPickup ( zx,xy,zz , 2, 9) --zx,xy,zz es la variable del zombie, el 2 es el tipo de pickup, en este caso un arma y el 9 es una motosierra [url=https://wiki.multitheftauto.com/wiki/Weapon]https://wiki.multitheftauto.com/wiki/Weapon[/url]" end --Esto acaba la function, 1 por funcion y si existiese if-then y else, se aplica otro. addEventHandler( "onPedWasted", getRootElement(), itemcre ) --onZombieWasted es cuando un zombie muere, getRootElement es para que se aplique a cualquier zombie e itemcre es el nombre de la funcion
-
addEventHandler ( "onResourceStart", resourceRoot, function ( ) vehicles = { } for index = 1, 22 do vehicles [ getElementByID ( "ALFA".. index ) ] = true end end ) addEventHandler ( "onVehicleStartEnter", root, function ( thePlayer, seat ) if ( seat ~= 0 ) then return end if ( vehicles [ source ] ) then if ( getPlayerTeam ( thePlayer ) and getTeamName ( getPlayerTeam ( thePlayer ) ) ~= "ALFA" ) then outputChatBox ( "Este vehiculo esta restringido a los miembros del clan ALFA", thePlayer, 255, 0, 0 ) cancelEvent ( ) end end end ) Yo lo hago asi, pero para Teams
-
[Duda]Problemas FastDL - 000WebHost
Alexs replied to Narutimmy's topic in Ayuda relacionada al cliente/servidor
Estas usando una web excesivamente sobrecargada, eso es lo que pasa, paga un Hosting de Archivos y no habra problema -
mmm... se ve el marcador? Panel = guiCreateWindow(749,250,326,448,"Armas de Hillitop",false) ColtIMG = guiCreateStaticImage(16,10,77,94,"images/22.png",false,Panel) guiSetAlpha(ColtIMG,0.69999998807907) Colt = guiCreateButton(21,96,111,37,"Colt-47 500$",false,Panel) guiSetFont(Colt,"default-bold-small") UziIMG = guiCreateStaticImage(186,18,82,84,"images/28.png",false,Panel) guiSetAlpha(UziIMG,0.69999998807907) Uzi = guiCreateButton(185,94,106,39,"Uzi 1000$",false,Panel) guiSetFont(Uzi,"default-bold-small") AKIMG = guiCreateStaticImage(92,147,99,141,"images/30.png",false,Panel) guiSetAlpha(AKIMG,0.69999998807907) AK = guiCreateButton(102,249,94,42,"AK-47 1500$",false,Panel) guiSetFont(AK,"default-bold-small") Cerrar = guiCreateButton(66,347,179,64,"Cerrar",false,Panel) guiSetFont(Cerrar,"sa-header") guiSetVisible(Panel,false) markergui = createMarker ( 1112.35, -316.86, 72.99, "cylinder", 2, 255, 0, 0, 255 ) vendedor = createPed ( 107,1113.54, -317.48, 73.99 ) function showGUI ( ) guiSetVisible(true, false) end addEventHandler("onClientMarkerHit",markergui,showGUI) Intenta asi, todo en el Client Side
-
Facil, estas creando el marcador cuanto lo tocas, es asi: markergui = createMarker ( 1112.35, -316.86, 72.99, "cylinder", 2, 255, 0, 0, 255 ) vendedor = createPed ( 107,1113.54, -317.48, 73.99 ) function showGUI ( ) setPedRotation(vendedor,0) if getElementType( hitElement ) == "player" then triggerClientEvent(hitElement,"showGUI",hitElement) end end addEventHandler("onMarkerHit",markergui,showGUI)
-
emmm si usas dxscoreboard si, pero aun necesitas setElementData, el Scripting es genial e ilimitado, pero no magico para saber el estado asi como asi, crea la columna pero no la rellena
-
usa las funciones exportadas de scoreborad y el setElementData
-
[Duda]Demora Descarga al Principio y Final
Alexs replied to Narutimmy's topic in Ayuda relacionada al cliente/servidor
You're Welcome
