03-31-2013, 19:03
03-31-2013, 19:34
client.Name ?
04-01-2013, 10:56
(03-31-2013, 19:34)Pozzuh Wrote: [ -> ]client.Name ?
Did this
Also how would I get a client name via the client number?
04-01-2013, 11:25
(04-01-2013, 10:56)legitmidget Wrote: [ -> ]straight after posting (felt like a derp), thanks though man.(03-31-2013, 19:34)Pozzuh Wrote: [ -> ]client.Name ?
Did this
Also how would I get a client name via the client number?
Example:
CSHARP Code
- public override ChatType OnSay(string Message, ServerClient Client)
- {
- if (Message.StartsWith("!clientnum"))
- {
- string[] split = Message.Split(' ');
-
- foreach (ServerClient c in GetClients())
- {
- if (c.ClientNum == int.Parse(split[1]))
- {
- ServerSay(c.Name, true);
- }
- }
- return ChatType.ChatNone;
- }
- return ChatType.ChatContinue;
- }
04-01-2013, 11:50
Thanks, were using this for a !tmpbanc and !warnc command
04-01-2013, 17:34
Is there any reason I am missing that you are not using GetClient instead of GetClients ?