Raised This Month: $ Target: $400
 0% 

Solved [L4D2] Beginning of Game Message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
leaffan
Senior Member
Join Date: Jan 2013
Old 05-25-2023 , 12:00   Re: [L4D2] Beginning of Game Message
Reply With Quote #3

Quote:
Originally Posted by HarryPotter View Post
Use left4dhooks function

PHP Code:
#include <sourcemod>
#include <left4dhooks>

#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()
{
    
}

public 
void L4D_OnFirstSurvivorLeftSafeArea_Post(int client)
{
    
PrintToChatAll("\x04[Oyun Mod-Kontrolü] \x01Oyun başladı. Oyun Mod'u hazır! Bol şanslar! İyi oyunlar...");

Perfect, thank you very much.

May I also make a small request regarding the situation?

Would it be possible to have another message appear when the player has not yet started the game and is in the 'Safe Zone'? Currently, there is a message for 'Out of Safe Zone', but could you also include a message for 'In Safe Zone' if it's not too much trouble?

Thank you.
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:10.


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