ItsMods

Full Version: Issuer.name into Onsay
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Sup guys, how do I get the issuer.name into public override onsay? I can only get client and message.
client.Name ?
(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?
(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:
CSHARP Code
  1. public override ChatType OnSay(string Message, ServerClient Client)
  2. {
  3. if (Message.StartsWith("!clientnum"))
  4. {
  5. string[] split = Message.Split(' ');
  6.  
  7. foreach (ServerClient c in GetClients())
  8. {
  9. if (c.ClientNum == int.Parse(split[1]))
  10. {
  11. ServerSay(c.Name, true);
  12. }
  13. }
  14. return ChatType.ChatNone;
  15. }
  16. return ChatType.ChatContinue;
  17. }
Thanks, were using this for a !tmpbanc and !warnc command Tongue
Is there any reason I am missing that you are not using GetClient instead of GetClients ?
(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