Add msg utils for newbie tips and randoms
This commit is contained in:
@@ -190,3 +190,19 @@ function messagePlayerAdminChat(client, adminChattingClient, messageText) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
|
function messagePlayerNewbieTip(client, message) {
|
||||||
|
if(!hasBitFlag(getPlayerData(client).accountData.settings, getAccountSettingsFlagValue("noActionTips"))) {
|
||||||
|
messagePlayerNormal(client, `💡 TIP: ${message}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
|
|
||||||
|
function messagePlayerTimedRandomTip(client, message) {
|
||||||
|
if(!hasBitFlag(getPlayerData(client).accountData.settings, getAccountSettingsFlagValue("noTimedRandomTips"))) {
|
||||||
|
messagePlayerNormal(client, `💡 TIP: ${message}`);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user