Carmison Posted January 5, 2013 Posted January 5, 2013 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.
Arsilex Posted January 5, 2013 Posted January 5, 2013 puedes subir el nivel de agua por dentro de gta por fuera se quedaria igual
Alexs Posted January 5, 2013 Posted January 5, 2013 @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)
Carmison Posted January 5, 2013 Author Posted January 5, 2013 @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
Carmison Posted January 5, 2013 Author Posted January 5, 2013 Ah bueno tengo otra duda no se si aqui mismo se peude poner 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
Xperia Posted January 5, 2013 Posted January 5, 2013 Prueba esto: for i = 550, 20000 do removeWorldModel ( i, 10000, 0, 0, 0 ) end
Carmison Posted January 5, 2013 Author Posted January 5, 2013 Prueba esto: for i = 550, 20000 do removeWorldModel ( i, 10000, 0, 0, 0 ) end Nada, al reconectar vuelve aparecer todo normal
Carmison Posted January 5, 2013 Author Posted January 5, 2013 Si, con esa funcion antes salia bien pero no se porque, ahora que reconecto el mapa se pone normal
Alexs Posted January 5, 2013 Posted January 5, 2013 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.
Alexs Posted January 5, 2013 Posted January 5, 2013 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.
Carmison Posted January 5, 2013 Author Posted January 5, 2013 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
Recommended Posts