Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2017-06-13, 16:53


Mysterek

Swieżak w LUA






Wiek: 28
Na forum: 3497 dni
Posty: 59
Nick w MP: InjectLine

Piwa: 867

Respekt: 35,3

Ostrzeżeń: 100%
Witam, dzisiaj postanowi?em sie troche pobawi? funkcja createWater,
Niestety nie dzia?a mi wiki MTA, nie pytajcie czemu. ale do rzeczy m?g?by mi kto? powiedzie? jak u?y? tej funkcji

Podpis
<SKYPE> facebook:grin1337
<TS3> ONLY PRIV
Postaw piwo autorowi tego posta
 

 
Wysłany: 2017-06-13, 17:03


=DC=







Wiek: 35
Na forum: 3944 dni
Posty: 223
Nick w MP: =DC=

Piwa: 72

Respekt: 150
Respekt: 150Respekt: 150

createWater int x1int y1float z1int x2int y2float z2int x3int y3float z3 [, int x4int y4float z4 ] [, bool bShallow false ] )


Required Arguments
x1, y1, z1: position of bottom left (south-west) corner.
x2, y2, z2: position of bottom right (south-east) corner.
x3, y3, z3: position of top left (north-west) corner.
Note: Only 3 coords creates a triangle (czyli podanie 3 pozycji tworzy tr?jk?t)

Optional Arguments
x4, y4, z4: position of top right (north-east) corner.
bShallow: gives the water a shallow water effect. (efekt p?ytko?ci wody)




Podpis

Witaj
, jeśli Ci pomogłem postaw mi :piwo: lub R* Dzięki!

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
Mysterek
Wysłany: 2017-06-13, 17:05


Cholewka

Zakorzeniony w LUA






Wiek: 22
Na forum: 3583 dni
Posty: 190

Piwa: 707

Respekt: 155,3
Respekt: 155,3Respekt: 155,3

Nie rozumiem o co chodzi. Mi wszystko ?adnie dzia?a, ale moge Ci j? tutaj wrzuci?.

Sk?adnia:
water createWater int x1int y1float z1int x2int y2float z2int x3int y3float z3 [, int x4int y4float z4 ] [, bool bShallow false ] )


Required Arguments
x1, y1, z1: position of bottom left (south-west) corner.
x2, y2, z2: position of bottom right (south-east) corner.
x3, y3, z3: position of top left (north-west) corner.
Note: Only 3 coords creates a triangle

Optional Arguments
x4, y4, z4: position of top right (north-east) corner.
bShallow: gives the water a shallow water effect.

Przyk?ady.
-- Setting water properties.
height 40
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_XsouthWest_YheightsouthEast_XsouthEast_YheightnorthWest_XnorthWest_YheightnorthEast_XnorthEast_Yheight )
    setWaterLevel height )
end
addEventHandler("onClientResourceStart"resourceRootthaResourceStarting)


Client.

function thaResourceStarting( )
    water createWater 1866, -1444101968, -1442101866, -1372101968, -137010 )
    setWaterLevel water20 )
end
addEventHandler("onClientResourceStart"getResourceRootElement(getThisResource()), thaResourceStarting)


R?wnie? client.

Mam nadziej? ?e pomog?em. :)

Postaw piwo autorowi tego posta
 

 
Więcej szczegółów
Wystawiono 1 piw(a):
Mysterek
Tagi: createwater
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku