• 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Release Welcomer
#11
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);
        }
    }
}


Attached Files
.rar   Welcomer.rar (Size: 1.74 KB / Downloads: 149)
  Reply
#12
@fookaa I didnt even notice the post lol i could of changed but didnt check this.

@bonemind Nice!

@kokole Thank you
  Reply
#13
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
  Reply
#14
(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
  Reply
#15
(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
  Reply
#16
Does not work with the update
[Image: b_560_95_1.png]
  Reply
#17
(05-10-2012, 22:39)Canta Wrote: Does not work with the update
It should work now. I no test
[-] The following 1 user says Thank You to Tylerd86 for this post:
  • Canta
  Reply
#18
You need to upgrade
[Image: b_560_95_1.png]
  Reply
#19
(06-11-2012, 14:04)Canta Wrote: You need to upgrade

No, this plugin should work.
[Image: azuw.jpg]
  Reply
#20
still works great lol...


some ppl...
(XS4ALL/GoT2DayZ) DayZ Servers (http://got2dayz.nl)
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
[Image: b_350_20_2E3226_383F2D_D2E1B5_5A6C3E.png]
http://fb.me/GoT2DayZ
  Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [Release] Steam Aliases (IsKnownAs ESL Welcomer) aceed 10 3,424 03-16-2013, 03:35
Last Post: aceed
Lightbulb [Request] Welcomer for Groups Kasperle 8 1,642 08-01-2012, 23:47
Last Post: Kasperle

Forum Jump:


Users browsing this thread: 1 Guest(s)