ChrisT Posted June 24, 2019 Share Posted June 24, 2019 Dátum Idő(mp-t is) Sziasztok olyan script kellene amit már vagy 2-3 órája csinálok de nem jutottam semmire az ha valaki meghal akkor kiírja hogy Dátumot és a percet pl:[2019-06-24 10:47:07] Játékos Név meghalt. A scriptem letöröltem mert káosz volt, segítséget kérek tőlletek Date Idő(second too)Hello everyone a script like that would be needed that you are 2-3 of his clock already make but I managed to get onto nothing az if somebody dies then issues it with a sick-note that date and the minute pl:[2019-06-24 10:47:07] A playful name died. Link to comment
Moderators Patrick Posted June 24, 2019 Moderators Share Posted June 24, 2019 (edited) -- SERVER SIDE SCRIPT function getTimePrefix() local realtime = getRealTime() return ("[%d-%02d-%02d %02d:%02d:%02d] "):format(realtime.year+1900, realtime.month+1, realtime.monthday, realtime.hour, realtime.minute, realtime.second) end addEventHandler("onPlayerWasted", root, function() outputChatBox(getTimePrefix() .. getPlayerName(source) .. " meghalt!", root) end) Edited June 24, 2019 by stPatrick Link to comment
ChrisT Posted June 24, 2019 Author Share Posted June 24, 2019 Nagyon szuper, minden tisztelet a tiéd Köszönöm szépen Link to comment
ChrisT Posted June 24, 2019 Author Share Posted June 24, 2019 ja, és szinezni hogy tudom?? szürkére? #E1DCDC erre a színkodra? Link to comment
Moderators Patrick Posted June 24, 2019 Moderators Share Posted June 24, 2019 36 minutes ago, ChrisT said: ja, és szinezni hogy tudom?? szürkére? #E1DCDC erre a színkodra? -- SERVER SIDE SCRIPT function getTimePrefix() local realtime = getRealTime() return ("[%d-%02d-%02d %02d:%02d:%02d] "):format(realtime.year+1900, realtime.month+1, realtime.monthday, realtime.hour, realtime.minute, realtime.second) end addEventHandler("onPlayerWasted", root, function() outputChatBox("#E1DCDC" .. getTimePrefix() .. getPlayerName(source) .. " meghalt!", root) end) Link to comment
ChrisT Posted June 24, 2019 Author Share Posted June 24, 2019 (edited) #E1DCDC[2019-06-24 19:30:56] ChrisT meghalt! ezt írja ki Edited June 24, 2019 by ChrisT rosszul irtam Link to comment
Moderators Patrick Posted June 24, 2019 Moderators Share Posted June 24, 2019 1 hour ago, ChrisT said: #E1DCDC[2019-06-24 19:30:56] ChrisT meghalt! ezt írja ki Ja igen, bocsi. Engedélyezni kell a színkódok megjelenítését. outputChatBox sort bővítsd ki így: outputChatBox("#E1DCDC" .. getTimePrefix() .. getPlayerName(source) .. " meghalt!", root, 255, 255, 255, true) Link to comment
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