ItsMods

Full Version: Welcomer
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
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
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);
        }
    }
}
@fookaa I didnt even notice the post lol i could of changed but didnt check this.

@bonemind Nice!

@kokole Thank you
Is the "visit our site http://cod6hmod.itshax.com for more info" console message hard coded into this plugin?
players believe that our server belongs to cod6hmod
(02-16-2012, 15:12)5niper Wrote: [ -> ]Is the "visit our site http://cod6hmod.itshax.com for more info" console message hard coded into this plugin?
players believe that our server belongs to cod6hmod

As you can see in the source code it isn't
That message is the default message in addon\timedmessages.txt
remove it there and it won't show up anymore Big Grin
(02-17-2012, 02:24)bonemind Wrote: [ -> ]
(02-16-2012, 15:12)5niper Wrote: [ -> ]Is the "visit our site http://cod6hmod.itshax.com for more info" console message hard coded into this plugin?
players believe that our server belongs to cod6hmod

As you can see in the source code it isn't
That message is the default message in addon\timedmessages.txt
remove it there and it won't show up anymore Big Grin

Didn't realize I had actually posted this. Had found the problem. Thanks.

Is there a way to configure this, so that it does not welcome everyone, every
time a new map starts? Should only welcome "new" players to the game, not
everyone, at every map. If not configurable, maybe it can be added to the plugin.

Big Grin
Does not work with the update
(05-10-2012, 22:39)Canta Wrote: [ -> ]Does not work with the update
It should work now. I no test
You need to upgrade
(06-11-2012, 14:04)Canta Wrote: [ -> ]You need to upgrade

No, this plugin should work.
still works great lol...


some ppl...
Pages: 1 2 3