Thread Rating:
  • 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: 156)
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
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...
Had a life, Got a modem..
Reply



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

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.