Hey can anyone say me. How to make a command that shows the time you played in the server by typing /mt in chat? please help!

Hey can anyone say me. How to make a command that shows the time you played in the server by typing /mt in chat? please help!

Thanks alot helping me brother, And I was just thinking of a game (Not yet made) and thought will it work on ue4? Or unity

Do you have a working chat system already? If so, recognizing the /mt command is pretty easy and you can just do a substring comparison and run the command instead of broadcasting a chat message.

The tricky part is probably getting the command itself to report your server play time.

You will need a way to record the time the player logged in (there is a blueprint node that gets the current time I think). Just store that in a variable when the player logs in.
When the command runs all it has to do is chdck thay same get current time function and subtract the login time from that to get the amount of time you have been logged in, and then pop the message up on the client’s screen.

Which of these parts are you having trouble doing?

oh yes you can totally do what you are describing no problem. it will work if you do it right.

I have to warn you though, if you are thinking of making an MMORPG dont try to do it by yourself. Thats a huge project! Butif you manage to do it by yourself then tell us how because then you are a genius

Thank you soo much brother!!! I am alone :frowning: I have 1 friend helping me (starter)

Hey, to make time counter, do the following steps in your BP;(I did it with a button in a Widget (Like Join button (you need to start the counter… i did it with a button an my widget) (You can start the counter by the Player joined)

Here’s how i did it:

End resoult:

Btw, i’m working alone too… maybe we can work together :wink: ^^

Yes please bro we can work together! And I’ll check it out the links you gave me <3

How can we get in contact? I can help you with your other questions :smiley:
Im working with ue4 for now around 2 year’s ^^

And i can help you to develope a game ^^

Please download discord my tag

I send you a friend request :smiley: