Moved ZMenu reminder to roundstart module, and fixed bug where it would be printed twice when connecting/spawning.
This commit is contained in:
@ -30,6 +30,33 @@
|
||||
*/
|
||||
#define ROUNDSTART_OBJECTIVE_ENTITIES "func_bomb_target|func_hostage_rescue|c4|hostage_entity"
|
||||
|
||||
/**
|
||||
* Client is spawning into the game.
|
||||
*
|
||||
* @param client The client index.
|
||||
*/
|
||||
RoundStartOnClientSpawn(client)
|
||||
{
|
||||
// If client hasn't spawned yet, then stop.
|
||||
if (!IsPlayerAlive(client))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Get public chat trigger prefix.
|
||||
decl String:publictrigger[4];
|
||||
SayHooksGetPublicChatTrigger(publictrigger, sizeof(publictrigger));
|
||||
|
||||
// If public chat trigger is disabled, then don't print message.
|
||||
if (StrEqual(publictrigger, "N/A", false))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Print to client, how to access ZMenu.
|
||||
TranslationPrintToChat(client, "General zmenu reminder", publictrigger, SAYHOOKS_KEYWORD_ZMENU);
|
||||
}
|
||||
|
||||
/**
|
||||
* The round is starting.
|
||||
*/
|
||||
|
Reference in New Issue
Block a user