feat(Notify): Added blocked event notification

This commit is contained in:
Yimura 2021-02-19 15:44:43 +01:00
parent ad0a6f2577
commit 5cb498c981
No known key found for this signature in database
GPG Key ID: 3D8FF4397E768682
2 changed files with 15 additions and 0 deletions

View File

@ -10,4 +10,17 @@ namespace big
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text);
HUD::END_TEXT_COMMAND_THEFEED_POST_TICKER(false, false);
}
void notify::blocked_event(const char* name, Player player)
{
char msg[128];
strcpy(msg, "~g~BLOCKED RECEIVED EVENT~s~\n~b~");
strcat(msg, name);
strcat(msg, "~s~\nFrom: <C>");
strcat(msg, PLAYER::GET_PLAYER_NAME(player));
strcat(msg, "</C>");
above_map(msg);
}
}

View File

@ -8,6 +8,8 @@ namespace big
public:
static void above_map(const char* text);
static void blocked_event(const char* name, Player player);
private:
};