Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: pomysły?
1. unFroze Vehicale jakieś pomysły?
Witam nie wiem jak zrobi? ?e gdy nikt nie jest w poje?dzie pojazd jest zamro?ony a gdy kto? wejdzie odmra?a si? mo?e by? na komendy
Liczne na pomoc!
2. removeEventHandler - pomysły?
Panowie, jakie? pomys?y na zatrzymanie eventu onClientRender NONAME? Moje si? ju? wyczerpa?y. Nie chodzi mi o funkcj? zatrzymuj?c? tylko o budow? kodu.


[lua]function showGui ( gracz, powod, czas, rodzaj )
if timer then
resetTimer ( timer )
end
gracz1 = gracz
rodzaj1 = rodzaj
czas1 = czas
powod1 = powod
event = addEventHandler ( "onClientRender", root, function()
timer = setTimer ( removeEventHandler, 5000, 1, "onClientRender", root, event )
dxDrawRectangle(1*width, 186*height, 263*width, 115*height, tocolor(0, 0, 0, 255), true)
dxDrawRectangle(0*width, 185*height, 263*width, 115*height, tocolor(206, 4, 23, 255), true)
dxDrawText("Gracz : "..gracz.."", 17*width, 202*height, 245*width, 238*height, tocolor(0, 0, 0, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
dxDrawText("Gracz : "..gracz.."", 16*width, 201*height, 244*width, 237*height, tocolor(255, 255, 255, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
dxDrawText("Czas :"..czas, 17*width, 228*height, 245*width, 264*height, tocolor(0, 0, 0, 255), 0.70*width, "pricedown", "center", "center", false, false, true, false, false)
dxDrawText("Czas : "..czas, 16*width, 227*height, 244*width, 263*height, tocolor(255, 255, 255, 255), 0.70*width, "...