New chat stuff (emoji, timestamps, etc)

This commit is contained in:
Vortrex
2022-07-17 04:23:32 -05:00
parent 8ca7a8bdfd
commit 25543b5f07
9 changed files with 123 additions and 65 deletions

View File

@@ -527,7 +527,8 @@ function sendPlayerRemoveFromVehicle(client) {
function sendChatBoxMessageToPlayer(client, messageText, colour) {
//messageClient(messageText, client, colour);
sendNetworkEventToPlayer("m", client, messageText, colour);
let date = new Date();
sendNetworkEventToPlayer("m", client, messageText, colour, date.getHours(), date.getMinutes(), date.getSeconds());
}
// ===========================================================================
@@ -1244,4 +1245,16 @@ function sendPlayerChatBoxTimeStampsState(client, state) {
sendNetworkEventToPlayer("agrp.chatTimeStamps", client, state);
}
// ==========================================================================
function sendPlayerChatEmojiState(client, state) {
sendNetworkEventToPlayer("agrp.chatEmoji", client, state);
}
// ==========================================================================
function sendPlayerProfanityFilterState(client, state) {
sendNetworkEventToPlayer("agrp.profanityFilter", client, state);
}
// ==========================================================================