Jump to content

Anivelar Agua


Carmison

Recommended Posts

Buenas, bueno resulta que borre todo el mapa de San andreas pero resulta que me quedo un problema me quedan unos grandes cuadros vacio donde estaba el mapa, bueno mi duda es como hago para que se a nivele todo el nivel del agua y que este todo igual, si podrian explicarme como jeje, De antemano gracais.

Link to comment

@pekio123 creo que se refiere a las zonas sin agua, para esto solo crea agua con

-- Setting water properties. 
height = 0 --Estando esto en 0 se niveleria al nivel de todo lo demás que queda. 
SizeVal = 2998 
-- Defining variables. 
southWest_X = -SizeVal 
southWest_Y = -SizeVal 
southEast_X = SizeVal 
southEast_Y = -SizeVal 
northWest_X = -SizeVal 
northWest_Y = SizeVal 
northEast_X = SizeVal 
northEast_Y = SizeVal 
  
-- OnClientResourceStart function that creates the water. 
function thaResourceStarting( ) 
    water = createWater ( southWest_X, southWest_Y, height, southEast_X, southEast_Y, height, northWest_X, northWest_Y, height, northEast_X, northEast_Y, height ) 
    setWaterLevel ( height ) 
end 
addEventHandler("onClientResourceStart", resourceRoot, thaResourceStarting) 

(Código de la Wiki usado como ejemplo para createWater)

Link to comment
@pekio123 creo que se refiere a las zonas sin agua, para esto solo crea agua con
-- Setting water properties. 
height = 0 --Estando esto en 0 se niveleria al nivel de todo lo demás que queda. 
SizeVal = 2998 
-- Defining variables. 
southWest_X = -SizeVal 
southWest_Y = -SizeVal 
southEast_X = SizeVal 
southEast_Y = -SizeVal 
northWest_X = -SizeVal 
northWest_Y = SizeVal 
northEast_X = SizeVal 
northEast_Y = SizeVal 
  
-- OnClientResourceStart function that creates the water. 
function thaResourceStarting( ) 
    water = createWater ( southWest_X, southWest_Y, height, southEast_X, southEast_Y, height, northWest_X, northWest_Y, height, northEast_X, northEast_Y, height ) 
    setWaterLevel ( height ) 
end 
addEventHandler("onClientResourceStart", resourceRoot, thaResourceStarting) 

(Código de la Wiki usado como ejemplo para createWater)

Muchas Gracias Alexs_Steel me sirvio :D

Link to comment

Ah bueno tengo otra duda no se si aqui mismo se peude poner :roll: es que ahora no se porque cuando pongo el remove

addEventHandler ( "onResourceStart",resourceRoot,function() 
    for i = 550, 20000 do 
        removeWorldModel ( i, 10000, 0, 0, 0 ) 
    end 
end) 

Se me desesaparecen partes pero cuando reconecto se ve igual sin nada borrado y antes me funcionaba bien :?

Link to comment
Prueba esto:
    for i = 550, 20000 do 
        removeWorldModel ( i, 10000, 0, 0, 0 ) 
    end 

Nada, al reconectar vuelve aparecer todo normal

Es fácil, lo pusiste server side, lo que significa que para el servidor ya no esta pero a ti te seguirá apareciendo, intenta ponerlo client side.

Link to comment
Tip: Pre r4844: It is strongly advised that you use this server side rather than client side because it will just function infinitely better as you should not need to handle streaming it out/back in.

Intenta usar onPlayerJoin, no es muy eficiente pero al menos sabremos si podemos usar otros métodos.

Link to comment
Tip: Pre r4844: It is strongly advised that you use this server side rather than client side because it will just function infinitely better as you should not need to handle streaming it out/back in.

Intenta usar onPlayerJoin, no es muy eficiente pero al menos sabremos si podemos usar otros métodos.

Funciono muchas gracias :D

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...