feat(Notify): Added player join notification
This commit is contained in:
parent
a61ba85278
commit
b26fe7fea1
@ -30,4 +30,16 @@ namespace big::notify
|
|||||||
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text);
|
HUD::ADD_TEXT_COMPONENT_SUBSTRING_PLAYER_NAME(text);
|
||||||
HUD::END_TEXT_COMMAND_DISPLAY_HELP(0, 0, 1, -1);
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
Reference in New Issue
Block a user