Quote:
Originally Posted by Drixevel
Code:
#include <sourcemod>
#pragma semicolon 1
#pragma newdecls required
public Plugin myinfo = {
name = "[L4D2] Game Start Message",
author = "Drixevel",
description = "Prints a message in chat when the game starts.",
version = "1.0.0",
url = "https://drixevel.dev/"
};
public void OnPluginStart()
{
HookEvent("player_left_start_area", Event_OnPlayerLeftStartArea);
}
public void Event_OnPlayerLeftStartArea(Event event, const char[] name, bool dontBroadcast) {
PrintToChatAll("\x03GAME STARTED");
}
|
Thank you very much, may I ask for a small edit that comes to mind?
Even before the addon leaves the safe zone, 'The game will start, wait.' What if he wrote something like And if it continues with a message like 'Game Started' when it leaves the safe area?
So two factor message;
> Message within safe area
> Message when leaving the safe area
Thanks.