feat(Notify): Added player join notification

This commit is contained in:
Yimura 2021-07-26 21:18:36 +02:00
parent a61ba85278
commit b26fe7fea1

View File

@ -30,4 +30,16 @@ namespace big::notify
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text);
HUD::END_TEXT_COMMAND_DISPLAY_HELP(0, 0, 1, -1);
}
inline void player_joined(CPlayer player)
{
char msg[64];
strcpy(msg, "<C>");
strcat(msg, player.name);
strcat(msg, "</C>");
strcat(msg, " joined.");
above_map(msg);
}
}