Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Client Say
08-07-2012, 22:32
Post: #1
Client Say
i have a question.
Is it possible to somehow make a client say something without him pressing the chat key, typing and sending?
Maybe by manipulating a certain memory address?

The Server catches the sending of a text with chat-say and can even stop sending that (in the OnSay function)... so it should be possible to make a client say something instead of canceling something he says.

I have an idea on a good plugin but to accomplish my idea i need to know if its possible to make a client say something and how to do that.

Hopefully someone can help me with that.
Related links
Find all posts by this user
Add Thank You Quote this message in a reply
08-07-2012, 22:34
Post: #2
RE: Client Say
It's even a gsc function http://www.zeroy.com/script/client/sayall.htm so it should be possible

[Image: MaEIQ.png]
Find all posts by this user
Add Thank You Quote this message in a reply
08-07-2012, 22:42 (This post was last modified: 08-07-2012 22:42 by Nukem.)
Post: #3
RE: Client Say
Code:
ServerSay(String.Format("{0}: ^7{1}", ServerClient.Name, "message here"), true);

[Image: b_560_95_1.png]

Words cannot define my hatred towards the atrocious thing that is school.
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
08-07-2012, 22:50
Post: #4
RE: Client Say
(08-07-2012 22:42)Nukem Wrote:  
Code:
ServerSay(String.Format("{0}: ^7{1}", ServerClient.Name, "message here"), true);

But that's like.. so ugly...
Related links

[Image: MaEIQ.png]
Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 1 user says Thank You to Pozzuh for this post:
barata (08-07-2012)
08-07-2012, 22:51
Post: #5
RE: Client Say
(08-07-2012 22:42)Nukem Wrote:  
Code:
ServerSay(String.Format("{0}: ^7{1}", ServerClient.Name, "message here"), true);

thx for the answer.
I don't think the "OnSay"-function will catch that message.
I forgot to mention that the "OnSay"-function must be called after making the client say something, so that all plugins can get that fake message in their override OnSay function.

Or would it be possible to just call CPlugin.OnSay so that every plugin (or just the first plugin) gets the message?
Find all posts by this user
Add Thank You Quote this message in a reply
08-07-2012, 23:41
Post: #6
RE: Client Say
@Nukem That's not realistic.

[Image: k5sVYyb.gif]
Visit this user's website Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 1 user says Thank You to JariZ for this post:
barata (08-07-2012)
08-08-2012, 02:14
Post: #7
RE: Client Say
(08-07-2012 22:51)Deviler86 Wrote:  
(08-07-2012 22:42)Nukem Wrote:  
Code:
ServerSay(String.Format("{0}: ^7{1}", ServerClient.Name, "message here"), true);

thx for the answer.
I don't think the "OnSay"-function will catch that message.
I forgot to mention that the "OnSay"-function must be called after making the client say something, so that all plugins can get that fake message in their override OnSay function.

Or would it be possible to just call CPlugin.OnSay so that every plugin (or just the first plugin) gets the message?

If you want that your plugin's OnSay Method is called first, name your plugin something like a.dll
The Addon is calling the Plugins Method in alphabetical order

[Image: compiling.png]
Find all posts by this user
Add Thank You Quote this message in a reply
08-08-2012, 05:02
Post: #8
RE: Client Say
(08-08-2012 02:14)Ich1994 Wrote:  
(08-07-2012 22:51)Deviler86 Wrote:  
(08-07-2012 22:42)Nukem Wrote:  
Code:
ServerSay(String.Format("{0}: ^7{1}", ServerClient.Name, "message here"), true);

thx for the answer.
I don't think the "OnSay"-function will catch that message.
I forgot to mention that the "OnSay"-function must be called after making the client say something, so that all plugins can get that fake message in their override OnSay function.

Or would it be possible to just call CPlugin.OnSay so that every plugin (or just the first plugin) gets the message?

If you want that your plugin's OnSay Method is called first, name your plugin something like a.dll
The Addon is calling the Plugins Method in alphabetical order

i know that already and i never said that i want my plugin's OnSay to be callled first.
What i want is to do a fake message from a client and that OnSay (for example in PermissionPlugin) is triggered by that.

But thx anyway ^^
Related links
Find all posts by this user
Add Thank You Quote this message in a reply
08-08-2012, 06:50
Post: #9
RE: Client Say
You can parse the player's team and use the color code accordingly to help it look more realistic.

[Image: 30xhrep.png]

A casual conversation between barata and I about Nukem.
Find all posts by this user
Add Thank You Quote this message in a reply
08-08-2012, 17:22 (This post was last modified: 08-08-2012 17:22 by zxz0O0.)
Post: #10
RE: Client Say
Thanks for the suggestion. Added SayAll(ServerClient, Message) and SayTeam(ServerClient, Message).

[Image: azuw.jpg]
Find all posts by this user
Add Thank You Quote this message in a reply
[-] The following 1 user says Thank You to zxz0O0 for this post:
Deviler86 (08-08-2012)
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Help 1.9.441 Client Offsets jakata 9 562 08-23-2012 07:07
Last Post: zxz0O0
  Help Client.Other.SecondaryWeapon Bug? narkos 2 132 07-14-2012 21:23
Last Post: narkos

Forum Jump:


User(s) browsing this thread: 1 Guest(s)
Media Embeding by Simple Audio Video Embeder