Jump to content

Kill message


Recommended Posts

                                                                                                                                                                                                                                                                                      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
-- 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 by stPatrick
Link to comment
  • Moderators
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
  • Moderators
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...