Hey,
Edited this plugin to make the message variable, Credits go to tylerd86
Just add the following to the sv_config.ini file:
[Welcomer]
message=Say hi to <playername>, he has just connected
or any other message
Edited this plugin to make the message variable, Credits go to tylerd86
Just add the following to the sv_config.ini file:
[Welcomer]
message=Say hi to <playername>, he has just connected
or any other message
Code:
using System;
using Addon;
namespace welcomer
{
public class welcomer : CPlugin
{
public override void OnServerLoad()
{
ServerPrint("Welcomer plugin by Tylerd86 loaded!");
}
public override void OnPlayerConnect(ServerClient Client)
{
String welcome = GetServerCFG("Welcomer", "message", "Say hi to <Playername>");
welcome = welcome.Replace("<playername>", Client.Name);
ServerSay(welcome, true);
}
}
}