Raised This Month: $ Target: $400
 0% 

Game Started Message [Request Please]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
leaffan
Senior Member
Join Date: Jan 2013
Old 04-29-2023 , 18:44   Re: Game Started Message [Request Please]
Reply With Quote #3

Quote:
Originally Posted by Drixevel View Post
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.
leaffan is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:40.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode