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

Wysłany: 2015-07-16, 10:12


pomaza







Wiek: 39
Na forum: 3982 dni
Posty: 79

Piwa: 2

Respekt: 50

Witam mam intro pobierania ze jak pobieram pliki to jestem w chmurach lub gdzies indziej jest kamera i nie mog? si? rusza?.
Ale niestety co? nie dzia?a i ludzie chodz? sobie prosz? o to kod:

Client
Kod:


addEventHandler("onClientResourceStart",resourceRoot,
function ()
triggerServerEvent("removeText",localPlayer)
end
)

-- pedy i auta :D

s = createVehicle ( 536, 389.35132,-2056.75806,7.45181+0.1 )
setElementRotation ( s, 355.74627685547, 358.99725341797, 150)
setElementFrozen ( s, true )
setVehicleLocked ( s, true )

local ped1 = createPed ( 0, 381.90140,-2077.88403,7.83594,270)
setElementFrozen(ped1, true)
setPedAnimation ( ped1, "GANGS", "prtial_gngtlkG")

local ped = createPed (0, 383.56723,-2077.86328,7.83594,90)
setElementFrozen(ped, true)
addPedClothes(ped, "vest", "vest", 0)
addPedClothes(ped, "glasses04", "glasses04", 15)
setPedAnimation(ped, "GANGS", "prtial_gngtlkH")

local ped2 = createPed ( 106, 382.04095,-2064.33960,7.83594,270)
setElementFrozen(ped2, true)
setPedAnimation ( ped2, "GANGS", "hndshkba")

local ped3 =createPed ( 107, 382.86667,-2064.52246,7.83594, 90)
setElementFrozen(ped3, true)
setPedAnimation ( ped3, "GANGS", "hndshkba")

local ped4 = createPed ( 105, 388.24002,-2059.60278,7.83594, 150)
setElementFrozen(ped4, true)
setPedAnimation ( ped4, "LOWRIDER", "M_smklean_loop")

local ped5 = createPed ( 35, 390.56781,-2084.03369,7.83594, 180)
setElementFrozen (ped5, true)
setPedAnimation ( ped5, "ON_LOOKERS", "lkaround_loop")

local ped6 = createPed ( 142, 388.91782,-2070.64771,7.83594,180)
setElementFrozen(ped6, true)


oraz server
Kod:


dawnlodetext1 = "ikikik" --- the text up
dawnlodetext2 = "ikikik" --- the text in medium
dawnlodetext3 = "ikik" --- the text under




dis = textCreateDisplay()
screentext = textCreateTextItem (dawnlodetext1, 0.5, 0.1, 2, 255,255,255, 255, 3.0, "center", "center",127 )
textDisplayAddText(dis,screentext)


dis1 = textCreateDisplay()
screentext1 = textCreateTextItem(dawnlodetext2, 0.5, 0.5, 2, 255,255,255, 255, 1.2, "center", "center",127 )
textDisplayAddText(dis1,screentext1)


dis2 = textCreateDisplay()
screentext2 = textCreateTextItem(dawnlodetext3, 0.5, 0.89, 2, 55,55,255, 255, 1.2, "center", "bottom",127 )
textDisplayAddText(dis2,screentext2)



addEventHandler("onResourceStart",resourceRoot,
function ()
for i,p in ipairs(getElementsByType("player")) do
textDisplayAddObserver(dis,p)
textDisplayAddObserver(dis1,p)
textDisplayAddObserver(dis2,p)
end
end
)




addEventHandler("onPlayerJoin",root,
function ()

fadeCamera(source, true, 0.8)
setCameraMatrix(source, 378.78476,-2101.66846,12.83818,400 , 0, 0.881813049316)--x,y,z,r1,r2,r3 -1894.37,668.43,145.05,0.3,0.0,45.0
textDisplayAddObserver(dis,source)
textDisplayAddObserver(dis1,source)
textDisplayAddObserver(dis2,source)
end
)




addEvent("removeText",true)
addEventHandler("removeText",root,
function ()
textDisplayRemoveObserver(dis,source)
textDisplayRemoveObserver(dis1,source)
textDisplayRemoveObserver(dis2,source)
end
)


Dam za pomoc piwko :)

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-16, 11:46


Tostuch







Wiek: 27
Na forum: 4931 dni
Posty: 483
Nick w MP: Tost

Piwa: 137

Respekt: 110
Respekt: 110

Jakie? b??dy?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-16, 11:52


pomaza







Wiek: 39
Na forum: 3982 dni
Posty: 79

Piwa: 2

Respekt: 50

zero

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-07-16, 12:36


Tostuch







Wiek: 27
Na forum: 4931 dni
Posty: 483
Nick w MP: Tost

Piwa: 137

Respekt: 110
Respekt: 110

Spr?buj pokombinowa? z t? funkcj?.


Więcej informacji znajdziesz w Wikipedii MTA:

isTransferBoxActive


Postaw piwo autorowi tego posta
 

 
Tagi: intro
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA » Intro 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