mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-06-17 23:07:26 +08:00
feat(Notify): Added player join notification
This commit is contained in:
parent
b0cf5cb611
commit
26bc009ce2
@ -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);
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user