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

Wysłany: 2015-02-25, 13:31


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

Witam mam taki o to problem bo chce zrobi? Ze jak kto? wychodzi z serwera i wchodzi to wy?wietla nam si? dxDrawRectangle i dxDrawText z nazw? gracza + do tego jak zrobic zeby po kilku sekundach to znika?o itp jak to mam zrobi? za pomoc :piwo:

addEventHandler("onPlayerJoin"getRootElement(), 
    function ()
outputChatBox(""..getPlayerName(source).." do??czy?/a"getRootElement(), 000255000)

    end)


        addEventHandler("onPlayerQuit"getRootElement(),
    function ( reason )
    outputChatBox(""..getPlayerName(source).." wyszed?/a("..reason..")"getRootElement(), 000255000)
end)

by? bym wdzi?czny za zrobiony kod lub przyk?ad

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-25, 15:09


Loop

Inspektor






Wiek: 27
Na forum: 4289 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

getRootElement() zmien na root



Musisz zrobi? trigger i przenie?? co tobie jest potrzebne

A co do przyk?ad?w to luknij sobie system Warn?w z XyzzyRP to po woli uda si? tobie to napisa?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-25, 15:41


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

Zrobi?em i co mi nie dzia?a .

Podpis
Modeler Corporation Sp. Z.O.O

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-25, 15:47


Loop

Inspektor






Wiek: 27
Na forum: 4289 dni
Posty: 311
Nick w MP: Inspektor

Piwa: 201

Respekt: 130
Respekt: 130

Patrzyle? wg ten system warnow XyzzyRp ? To nie zmieniaj tego getRootElement().

Gdybym mia? czas to bym ci to napisa?.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-25, 16:06


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

To nie zmieniaj tego getRootElement().



Wiesz, ?e root i getRootElement() to to samo? B?d? pewny tego co robisz jak komu? pomagasz.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-25, 16:12


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

zrobi?em tak lecz pokazuje si? ale 1 sekund? .. jak zrobi? z?by by?o d?u?ej wy?wietlane ?

addEventHandler('onClientPlayerJoin'root,
    function()
dxDrawText("* " .. getPlayerName(source) .. " dolacza do gry. ( "..#getElementsByType("player").." graczy )", 8, 567, 238, 584, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
    end
)
 
 
addEventHandler('onClientPlayerQuit'root,
    function(reason)
local stan #getElementsByType("player")
local stan2 stan 1
dxDrawText("* " .. getPlayerName(source) .. " opuszcza gre ["        .. reason .. "] ( "..stan2.." graczy )"9588228606tocolor(255255255255), 1.00"default""left""top"falsefalsefalsefalsefalse)
end
)


Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-25, 16:14


EMILOS123







Wiek: 28
Na forum: 5449 dni
Posty: 219
Nick w MP: Emilos

Piwa: 128

Respekt: 190
Respekt: 190Respekt: 190

"THEGizmo" napisał/a:

zrobi?em tak lecz pokazuje si? ale 1 sekund? .. jak zrobi? z?by by?o d?u?ej wy?wietlane ?

addEventHandler('onClientPlayerJoin'root,
    function()
dxDrawText("* " .. getPlayerName(source) .. " dolacza do gry. ( "..#getElementsByType("player").." graczy )", 8, 567, 238, 584, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
    end
)
 
 
addEventHandler('onClientPlayerQuit'root,
    function(reason)
local stan #getElementsByType("player")
local stan2 stan 1
dxDrawText("* " .. getPlayerName(source) .. " opuszcza gre ["        .. reason .. "] ( "..stan2.." graczy )"9588228606tocolor(255255255255), 1.00"default""left""top"falsefalsefalsefalsefalse)
end
)


Musisz to: 1.00 zapewne zamieni? na powied?my 5.00 - wtedy si? b?dzie wy?wietla?o 5 sekund.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-25, 16:20


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

"EMILOS123" napisał/a:

"THEGizmo" napisał/a:

zrobi?em tak lecz pokazuje si? ale 1 sekund? .. jak zrobi? z?by by?o d?u?ej wy?wietlane ?

addEventHandler('onClientPlayerJoin'root,
    function()
dxDrawText("* " .. getPlayerName(source) .. " dolacza do gry. ( "..#getElementsByType("player").." graczy )", 8, 567, 238, 584, tocolor(255, 255, 255, 255), 1.00, "default", "left", "top", false, false, false, false, false)
    end
)
 
 
addEventHandler('onClientPlayerQuit'root,
    function(reason)
local stan #getElementsByType("player")
local stan2 stan 1
dxDrawText("* " .. getPlayerName(source) .. " opuszcza gre ["        .. reason .. "] ( "..stan2.." graczy )"9588228606tocolor(255255255255), 1.00"default""left""top"falsefalsefalsefalsefalse)
end
)


Musisz to: 1.00 zapewne zamieni? na powied?my 5.00 - wtedy si? b?dzie wy?wietla?o 5 sekund.


Przecie? to jest rozmiar Tekstu ... a nie sekundy .

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-25, 17:02


MeeShuffle

Programista/Grafik






Wiek: 32
Na forum: 4394 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8575

Respekt: 535,3
Respekt: 535,3

dxDrawText podepnij pod jak?? funkcj?, powiedzmy dxDraw.

po zalogowaniu dodaj takie co? :

addEventHandler "onClientRender"rootdxDraw )


Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-25, 17:55


Tey







Wiek: 31
Na forum: 4876 dni
Posty: 155
Nick w MP: l0nger

Piwa: 280

Respekt: 193
Respekt: 193Respekt: 193

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-26, 16:12


THEGizmo

Modeler/Uczeń Lua






Wiek: 27
Na forum: 4141 dni
Posty: 255
Nick w MP: THEGizmo

Piwa: 3072

Respekt: 200
Respekt: 200Respekt: 200

Tey Dzi?ki W?asnie o to mi chodzi?o :) masz Zimne :piwo:

Ps: sory ze wczoraj nie opisa?em ale net mi pad?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-02-27, 00:32


ToxiC.







Wiek: 28
Na forum: 5246 dni
Posty: 3792

Piwa: 8590

Respekt: 1143,8
Respekt: 1143,8

[clo]

Postaw piwo autorowi tego posta
 

 
Tagi: dxdrawrectangle :: dxdrawtext :: time
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






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