How can I separate resources download? So the player can join and play the server while the mods are downloading. All from inside the server, ain't having an external link for downloading...
Wow!! que pequeño detalle pero ahora lo conosco gracias a ti, muchisimas gracias en verdad
De nada. Si tienes algún problema mas no olvides en postearlo.
Prueba añadiendo:
showCursor(false)
guiSetVisible( PANEL, false )
guiWindowSetSizable( PANEL, false )
guiWindowSetMovable( PANEL, false )
así no se vera la ventana al empezar el script, de paso tampoco enseñara el ratón y hará que no la puedas mover ni cambiar el tamaño.
De nada
solo era para referirme a la distancia de coordenadas... digamos que un metro es un punto de las coordenadas.. por ejemplo de 1 a 2 es un metro..
a lo de anchura y altura me refiero mirando el mapa desde arriba... como cuando aprietas F11...
usa esto
https://wiki.multitheftauto.com/wiki/CreateRadarArea
no necesita mas que meterle las coordenadas
ejemplo
te situas en el lado izquierdo abajo de la zona que quieras crear (mirando al norte)
local area1 = createRadarArea(posicionX,posicionY,Anchura en mts,Alturaen mts, colorrojo (0-255),colorverde,colorazul,transparencia (0-255) )
prueba con
function cuandoMuere()
spawnPlayer (source, x, y, z, rotacion, skinID, 0, 0)
setCameraTarget(source, source)
showChat(source, true)
end
function timer()
setTimer ( cuandoMuere, tiempo en milisegundos, 1)
end
addEventHandler ("onPlayerWasted", getRootElement(), timer)
exec /root/mtasa-blue/mta-server
<- You must first execute the server application in console using this command and the directory... for example, that's my default directory.
Steps:
If you got screen installed on linux, use
screen -S windowname
first, that's for creating a static window so it will stay always online.
Then use
exec /root/mtasa-blue/mta-server
or change the directory if it's different.
After that you will have yor server running, whenever you want to stop your computer just close that window, nothing will happen to your server.
Whenever you want to get that screen again just use
screen -r windowname
and the server window will come up.
Prueba creando un script con este codigo.
function cuandoMuere()
spawnPlayer (source, x, y, z, rotacion, skinID, 0, 0)
setCameraTarget(source, source)
showChat(source, true)
addEventHandler ("onPlayerWasted", getRootElement(), cuandoMuere)
le cambias la posicion x, y ,z, la rotación y el skin.