Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request User welcome message
#1
hi, in my server welcome message for users cant work.. if anyone have it please share to me . thanks
Reply

#2
Code:
using System.Text;
using Addon;
using System;

namespace Welcome
{
    public class visitplug : CPlugin
    {
        public override void OnServerLoad()
        {
                ServerPrint("Welcome plugin loaded");
        }
        public override void OnPlayerConnect(ServerClient Client)
        {
                ServerSay("Welcome Player ^2" + Client.Name + " ^7to the Server", true);
        }
    }
}
Reply

#3
It's so hard. Troll
C++/Obj-Cdeveloper. Neko engine wip
Steam: Click
Reply

#4
Made it self! Like a sir

This took me 5 long min of hard work, and you? Troll
Reply

#5
this will help.? without plugins?.. and i have put this code on notepad or what??
Reply

#6
http://www.itsmods.com/forum/Thread-How-...noobs.html
http://www.itsmods.com/forum/Thread-Rele...Maker.html
I now host all my MW3 projects on my private GIT repo
Reply

#7
(12-14-2013, 22:22)EnVi Sweden Rocks Wrote: Made it self! Like a sir

This took me 5 long min of hard work, and you? Troll

Haha I have a better one Like a sir
Troll
Troll
Dumb Bitch

Code:
using System;
using Addon;

namespace welcomer
{
    public class welcomer : CPlugin
    {
        public override void OnServerLoad()
        {
            ServerPrint("Welcome Plugin LOADED...");
            base.OnServerLoad();
        }
        public override void OnPlayerConnect(ServerClient Client)
        {
            ServerSay("^2Welcome ^3" + Client.Name + " ^2 To the server!", true);
            base.OnPlayerConnect(Client);
        }
        public override void OnPlayerDisconnect(ServerClient Client)
        {
            iPrintLn(" ^2"+ Client.Name + " ^3Has exit the server!",null);
            base.OnPlayerDisconnect(Client);
        }
    }
}
Reply

#8
Sorry, my asshole mode will be in use for the moment.

This is redundant, you're not using any system references
CHSARP Code
  1. using System;

Why the space and the capital T?
Code:
^2 To

Again, not sure why there is a space
Code:
iPrintLn(" ^2"

Another capital letter?
Code:
^3Has

Keep consistent, leave a space after the comma
CHSARP Code
  1. ",null);


Use proper naming conventions, namespaces and classes should always start with a capital letter, classes should never contain the same exact word as the namespace.

Wrong
CHSARP Code
  1. namespace welcomer
  2. {
  3. public class welcomer : CPlugin {}
  4. }


Correct
CHSARP Code
  1. namespace Welcomer
  2. {
  3. public class Main : CPlugin {}
  4. }


Sorry, just felt like being a code nazi today. Fuck yea!
I now host all my MW3 projects on my private GIT repo
Reply

#9
(02-13-2014, 23:17)Slimpy Wrote:
(12-14-2013, 22:22)EnVi Sweden Rocks Wrote: Made it self! Like a sir

This took me 5 long min of hard work, and you? Troll

Haha I have a better one Like a sir
Troll
Troll
Dumb Bitch

Code:
using System;
using Addon;

namespace welcomer
{
    public class welcomer : CPlugin
    {
        public override void OnServerLoad()
        {
            ServerPrint("Welcome Plugin LOADED...");
            base.OnServerLoad();
        }
        public override void OnPlayerConnect(ServerClient Client)
        {
            ServerSay("^2Welcome ^3" + Client.Name + " ^2 To the server!", true);
            base.OnPlayerConnect(Client);
        }
        public override void OnPlayerDisconnect(ServerClient Client)
        {
            iPrintLn(" ^2"+ Client.Name + " ^3Has exit the server!",null);
            base.OnPlayerDisconnect(Client);
        }
    }
}

Oh Look Its Tony Troll
~FYANB~ Servers Website

Primary Account:
[Image: 76561198070236721.png]
Secondary Account:
[Image: 76561198096107676.png]
Third Account:
[Image: 76561198164751656.png]
Reply

#10
(02-13-2014, 23:43)SgtLegend Wrote: Sorry, my asshole mode will be in use for the moment.

This is redundant, you're not using any system references
CHSARP Code
  1. using System;

Why the space and the capital T?
Code:
^2 To

Again, not sure why there is a space
Code:
iPrintLn(" ^2"

Another capital letter?
Code:
^3Has

Keep consistent, leave a space after the comma
CHSARP Code
  1. ",null);


Use proper naming conventions, namespaces and classes should always start with a capital letter, classes should never contain the same exact word as the namespace.

Wrong
CHSARP Code
  1. namespace welcomer
  2. {
  3. public class welcomer : CPlugin {}
  4. }


Correct
CHSARP Code
  1. namespace Welcomer
  2. {
  3. public class Main : CPlugin {}
  4. }


Sorry, just felt like being a code nazi today. Fuck yea!

I didn't feel like editing it, I knew it was wrong but who cares...just wanted to make one with:
Code:
public override void OnPlayerDisconnect(ServerClient Client) ect...
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [Request] Welcome plugin that checks user for VAC bans. graphix2004 0 2,068 07-26-2015, 12:19
Last Post: graphix2004
  Help Headshot Message Plugin Slimpy 4 3,485 01-23-2014, 10:18
Last Post: Slimpy
  [Request] Permanent Message LiL-Joker-69 8 5,215 01-18-2014, 09:01
Last Post: yokai134

Forum Jump:


Users browsing this thread:
5 Guest(s)

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