12-14-2013, 21:44
hi, in my server welcome message for users cant work.. if anyone have it please share to me . thanks
|
Request User welcome message
|
|
12-14-2013, 21:44
hi, in my server welcome message for users cant work.. if anyone have it please share to me . thanks
12-14-2013, 22:06
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);
}
}
}
12-14-2013, 22:22
(This post was last modified: 12-14-2013, 22:37 by EnVi Sweden Rocks.)
Made it self!
![]() This took me 5 long min of hard work, and you?
12-18-2013, 21:25
(This post was last modified: 12-18-2013, 21:26 by abdul samad.)
this will help.? without plugins?.. and i have put this code on notepad or what??
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
(12-14-2013, 22:22)EnVi Sweden Rocks Wrote: Made it self! Haha I have a better one ![]() ![]() ![]() ![]() 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);
}
}
}
Sorry, my asshole mode will be in use for the moment.
This is redundant, you're not using any system references Code: using System;Code: ^2 ToAgain, not sure why there is a space Code: iPrintLn(" ^2"Another capital letter? Code: ^3HasKeep consistent, leave a space after the comma Code: ",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 Code: namespace welcomer
{
public class welcomer : CPlugin {}
}Correct Code: namespace Welcomer
{
public class Main : CPlugin {}
}Sorry, just felt like being a code nazi today.
I now host all my MW3 projects on my private GIT repo
02-14-2014, 05:13
(02-13-2014, 23:17)Slimpy Wrote:(12-14-2013, 22:22)EnVi Sweden Rocks Wrote: Made it self! Oh Look Its Tony
(02-13-2014, 23:43)SgtLegend Wrote: Sorry, my asshole mode will be in use for the moment. 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... |
| Possibly Related Threads… | |||||
| Thread | Author | Replies | Views | Last Post | |
| [Request] Welcome plugin that checks user for VAC bans. | graphix2004 | 0 | 2,839 |
07-26-2015, 12:19 Last Post: graphix2004 |
|
| Help Headshot Message Plugin | Slimpy | 4 | 4,417 |
01-23-2014, 10:18 Last Post: Slimpy |
|
| [Request] Permanent Message | LiL-Joker-69 | 8 | 6,638 |
01-18-2014, 09:01 Last Post: yokai134 |
|
| Users browsing this thread: |
| 1 Guest(s) |