Issuer.name into Onsay
#1
Sup guys, how do I get the issuer.name into public override onsay? I can only get client and message.

#2
client.Name ?
[Image: MaEIQ.png]

#3
(03-31-2013, 19:34)Pozzuh Wrote: client.Name ?

Did this
straight after posting (felt like a derp), thanks though man.
Also how would I get a client name via the client number?

#4
(04-01-2013, 10:56)legitmidget Wrote:
(03-31-2013, 19:34)Pozzuh Wrote: client.Name ?

Did this
straight after posting (felt like a derp), thanks though man.
Also how would I get a client name via the client number?

Example:
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; }

#5
Thanks, were using this for a !tmpbanc and !warnc command Tongue

#6
Is there any reason I am missing that you are not using GetClient instead of GetClients ?

#7
(04-01-2013, 17:34)archit Wrote: Is there any reason I am missing that you are not using GetClient instead of GetClients ?

Nope, I didn't even think of using it lol



Possibly Related Threads…
Thread Author Replies Views Last Post
  Change [Message] value in OnSay AboAlwe 6 5,067 06-29-2012, 20:00
Last Post: AboAlwe

Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.