Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Client Say
#1
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.
Reply

#2
It's even a gsc function http://www.zeroy.com/script/client/sayall.htm so it should be possible
[Image: MaEIQ.png]
Reply

#3
Code:
ServerSay(String.Format("{0}: ^7{1}", ServerClient.Name, "message here"), true);
[Image: b_560_95_1.png]
Reply

#4
(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...
[Image: MaEIQ.png]
Reply

#5
(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?
Reply

#6
@Nukem That's not realistic.
Reply

#7
(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][Image: aLKA8og_460sa.gif]
Reply

#8
(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 ^^
Reply

#9
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.
Reply

#10
Thanks for the suggestion. Added SayAll(ServerClient, Message) and SayTeam(ServerClient, Message).
[Image: azuw.jpg]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Wink [News] Call of Duty Online (CN) Enters BravoTest (client is avaliable for download kjkszpj 17 11,370 05-06-2013, 02:18
Last Post: logitechnoob
  Help Client xuid + playername 99IRock 2 3,133 12-15-2012, 23:45
Last Post: Ich1994
  [Request] Easy Dvar set server / client. Dumas 10 8,072 09-24-2012, 16:44
Last Post: Nekochan
  Help 1.9.441 Client Offsets jakata 9 5,455 08-23-2012, 07:07
Last Post: zxz0O0
  Help Client.Other.SecondaryWeapon Bug? narkos 2 2,398 07-14-2012, 21:23
Last Post: narkos
  Read Client Offset Value or Text zraile 1 2,478 04-06-2012, 03:00
Last Post: Nukem
  [Tutorial] SIP Calls using Android Client crAyon 3 7,436 02-07-2012, 19:32
Last Post: alvarogt95
Rainbow [Release] MW3 Custom RCON Server + Client ALPHA JariZ 25 23,687 01-06-2012, 13:36
Last Post: JariZ
  Battlefield 3 Beta client doesn't start? maybe this helps ddaavvee 15 15,261 10-08-2011, 17:54
Last Post: ddaavvee
  [Request] Getting client FPS (not com_maxfps value) Pyroh 4 2,618 08-15-2011, 17:35
Last Post: Pyroh

Forum Jump:


Users browsing this thread:
5 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.