Tosti Posted June 29, 2013 Posted June 29, 2013 Cześć! Ostatnio sobie chodziłem po serwerach i widziałem poprostu napis podczas pobierania plików. Wrzuciłem do siebie na serwer i wywaliłem wszystko z resources, wchodze na serwer i nic mi się nie wyświetla. Kod(client-side): function checkTransfer() if isTransferBoxActive() == true then dxCos(source) setTimer(checkTransfer,2000,1) else fadeCamera(true) end end addEventHandler("onPlayerJoin",resourceRoot,checkTransfer) function dxCos() dxDrawText("Gdy już się pobiorą zostaniesz przeniesiony/a do okna logowania.", 83, 273, 1278, 319, tocolor(255, 255, 255, 255), 3, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("Aktualnie są pobierane wszystkie zasoby serwera.", 231, 185, 1138, 229, tocolor(255, 255, 255, 255), 3, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("Witaj na (tu jest nazwa serwera)!!", 413, 91, 948, 133, tocolor(255, 0, 0, 255), 3, "default-bold", "center", "center", false, false, true, false, false) dxDrawText("Dziękujemy za wybranie akurat nas.", 78, 336, 728, 382, tocolor(255, 255, 255, 255), 3, "default-bold", "left", "top", false, false, true, false, false) dxDrawText("Ekipa serwera (tu jest nazwa serwera).", 738, 471, 1355, 520, tocolor(255, 255, 255, 255), 3, "default-bold", "left", "top", false, false, true, false, false) end addEventHandler("onClientPreRender", root, dxCos) EDIT: Trochę mi pomógł Mefisto_PL lecz tekst się wyświetla po pobraniu, nie podczas pobierania ;/
Wielebny Posted July 1, 2013 Posted July 1, 2013 Nie możesz użyć kodu klienckiego gdyż przy pierwszym wejściu na serwer, uruchomi się on dopiero po pobraniu wszystkich zasobów. Skorzystaj z dostępnych po stronie serwera funkcji z tej kategorii: https://wiki.multitheftauto.com/wiki/Ser ... _functions
Mefisto_PL Posted July 1, 2013 Posted July 1, 2013 Już mu to pisałem + użyłeś eventu server-side i client-side w jednym.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now