Wysłany: 2014-10-14, 14:50
MeeShuffle
Programista/Grafik
Wiek: 32 Na forum: 4394 dni Posty: 2758
Nick w MP: Shuffle
Piwa : 8575
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.
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 , "pricedown" , "center" , "center" , false , false , true , false , false )
dxDrawText ( "Pow?d : " .. powod , 17 * width , 255 * height , 245 * width , 291 * height , tocolor ( 0 , 0 , 0 , 255 ), 0.70 * width , "pricedown" , "center" , "center" , false , false , true , false , false )
dxDrawText ( "Pow?d : " .. powod , 16 * width , 254 * height , 244 * width , 290 * height , tocolor ( 255 , 255 , 255 , 255 ), 0.70 * width , "pricedown" , "center" , "center" , false , false , true , false , false )
dxDrawText ( rodzaj , 68 * width , 166 * height , 193 * width , 202 * height , tocolor ( 0 , 0 , 0 , 255 ), 1.00 * width , "pricedown" , "center" , "center" , false , false , true , false , false )
dxDrawText ( rodzaj , 68 * width , 164 * height , 193 * width , 200 * height , tocolor ( 0 , 0 , 0 , 255 ), 1.00 * width , "pricedown" , "center" , "center" , false , false , true , false , false )
dxDrawText ( rodzaj , 66 * width , 166 * height , 191 * width , 202 * height , tocolor ( 0 , 0 , 0 , 255 ), 1.00 * width , "pricedown" , "center" , "center" , false , false , true , false , false )
dxDrawText ( rodzaj , 66 * width , 164 * height , 191 * width , 200 * height , tocolor ( 0 , 0 , 0 , 255 ), 1.00 * width , "pricedown" , "center" , "center" , false , false , true , false , false )
dxDrawText ( rodzaj , 67 * width , 165 * height , 192 * width , 201 * height , tocolor ( 255 , 255 , 255 , 255 ), 1.00 * width , "pricedown" , "center" , "center" , false , false , true , false , false )
end )
end
Wysłany: 2014-10-14, 16:06
KukiX
Wiek: 34 Na forum: 6718 dni Posty: 567
Piwa : 17560
Mo?e tak spr?buj to zrobi?:
function showGui ( gracz , powod , czas , rodzaj )
if timer then
resetTimer ( timer )
end
gracz1 = gracz
rodzaj1 = rodzaj
czas1 = czas
powod1 = powod
function lolxd ()
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 , "pricedown" , "center" , "center" , false , false , true , false , false )
dxDrawText ( "Pow?d : " .. powod , 17 * width , 255 * height , 245 * width , 291 * height , tocolor ( 0 , 0 , 0 , 255 ), 0.70 * width , "pricedown" , "center" , "center" , false , false , true , false , false )
dxDrawText ( "Pow?d : " .. powod , 16 * width , 254 * height , 244 * width , 290 * height , tocolor ( 255 , 255 , 255 , 255 ), 0.70 * width , "pricedown" , "center" , "center" , false , false , true , false , false )
dxDrawText ( rodzaj , 68 * width , 166 * height , 193 * width , 202 * height , tocolor ( 0 , 0 , 0 , 255 ), 1.00 * width , "pricedown" , "center" , "center" , false , false , true , false , false )
dxDrawText ( rodzaj , 68 * width , 164 * height , 193 * width , 200 * height , tocolor ( 0 , 0 , 0 , 255 ), 1.00 * width , "pricedown" , "center" , "center" , false , false , true , false , false )
dxDrawText ( rodzaj , 66 * width , 166 * height , 191 * width , 202 * height , tocolor ( 0 , 0 , 0 , 255 ), 1.00 * width , "pricedown" , "center" , "center" , false , false , true , false , false )
dxDrawText ( rodzaj , 66 * width , 164 * height , 191 * width , 200 * height , tocolor ( 0 , 0 , 0 , 255 ), 1.00 * width , "pricedown" , "center" , "center" , false , false , true , false , false )
dxDrawText ( rodzaj , 67 * width , 165 * height , 192 * width , 201 * height , tocolor ( 255 , 255 , 255 , 255 ), 1.00 * width , "pricedown" , "center" , "center" , false , false , true , false , false )
end
addEventHandler ( "onClientRender" , root , lolxd )
timer = setTimer ( removeEventHandler , 5000 , 1 , "onClientRender" , root , lolxd )
end
Tagi: removeeventhandler :: pomysły?
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: