ItsMods

Full Version: Welcomer for Groups
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Is it posssible to make a 'Welcomer Plugin' like in COD4, for each group Plugin says another welcome message, like this

EXAMPLE:

When an Admin joins:

Admin name has joined the game!

When Player joins:

Welcome player name


is this possible, its like in cod4 Smile
And i think this will be nice for servers, that players can see, that an admin has connected...


[sorry for bad english, i am german] Wink
I like this idea. Sort of like Minecraft
It was already released... no?
But it is easy as hell to make..

Maybe i will make it now lol

Code:
using System;
using System.Collections.Generic;
using Addon;
using System.Text;

namespace welcomePlug
{
    public class Class1 : CPlugin
    {
    
        public override void  OnPlayerConnect(ServerClient Client)
        {
if (Client.XUID == "EPIC_MEGA_PERSON_XUID")
            {
                iPrintLnBold("MEGA SUPER EPIC ADMIN " + Client.Name + " JOINED SERVER", null);
            }
else
{
            foreach(ServerClient c in GetClients())
                TellClient(c.ClientNum, string.Format("All welcome ^2{0}", Client.Name), true);
}
        }
        

  
    }
}
inb4 WHAT'S THIS I'M NOT GOOD WITH COMPUTER
(07-31-2012, 02:20)JayDi Wrote: [ -> ]It was already released... no?
But it is easy as hell to make..

Maybe i will make it now lol

Code:
using System;
using System.Collections.Generic;
using Addon;
using System.Text;

namespace welcomePlug
{
    public class Class1 : CPlugin
    {
    
        public override void  OnPlayerConnect(ServerClient Client)
        {
if (Client.XUID == "EPIC_MEGA_PERSON_XUID")
            {
                iPrintLnBold("MEGA SUPER EPIC ADMIN " + Client.Name + " JOINED SERVER", null);
            }
else
{
            foreach(ServerClient c in GetClients())
                TellClient(c.ClientNum, string.Format("All welcome ^2{0}", Client.Name), true);
}
        }
        

  
    }
}


sorry for aksing, is this the unfinished code? Shy
just create it in c#, just tried it and took me less than a minute to do, also i can't say 100% its working due to it not displaying when i join my lan, however this is the same for any mod of this sort for me anyway.

Odd that i used to be able to see it print when i joined my lan/server but after a addon update awhile back it sort of stopped working. Others can see it's very odd but oh well.

I can't upload it due to needing the server Admins xuid.
(08-01-2012, 13:48)hillbilly Wrote: [ -> ]just create it in c#, just tried it and took me less than a minute to do, also i can't say 100% its working due to it not displaying when i join my lan, however this is the same for any mod of this sort for me anyway.

Odd that i used to be able to see it print when i joined my lan/server but after a addon update awhile back it sort of stopped working. Others can see it's very odd but oh well.

I can't upload it due to needing the server Admins xuid.

Could you give me one probably upload your current version, maybe it can work their way Smile

(Googletranslator ftw!)
(08-01-2012, 18:53)Kasperle Wrote: [ -> ]
(08-01-2012, 13:48)hillbilly Wrote: [ -> ]just create it in c#, just tried it and took me less than a minute to do, also i can't say 100% its working due to it not displaying when i join my lan, however this is the same for any mod of this sort for me anyway.

Odd that i used to be able to see it print when i joined my lan/server but after a addon update awhile back it sort of stopped working. Others can see it's very odd but oh well.

I can't upload it due to needing the server Admins xuid.

Could you give me one probably upload your current version, maybe it can work their way Smile

(Googletranslator ftw!)

wouldn't be anygood to you if i did upload it, the admins xuid needs to be added to the mod. So if this was for your server i would need your xuid.

PM me your xuid and i'll add it to the mod and upload it.
Thanks, i sended you PM