|
Client Say
|
|
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.
|
|||
|
Post: #2
|
|||
|
|||
|
RE: Client Say
It's even a gsc function http://www.zeroy.com/script/client/sayall.htm so it should be possible
![]() |
|||
|
Post: #3
|
|||
|
|||
|
RE: Client Say
Code: ServerSay(String.Format("{0}: ^7{1}", ServerClient.Name, "message here"), true); |
|||
|
Post: #4
|
|||
|
|||
RE: Client Say
(08-07-2012 22:42)Nukem Wrote: But that's like.. so ugly...
![]() |
|||
The following 1 user says Thank You to Pozzuh for this post:barata (08-07-2012) |
|
Post: #5
|
|||
|
|||
RE: Client Say
(08-07-2012 22:42)Nukem Wrote: 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? |
|||
|
Post: #6
|
|||
|
|||
|
RE: Client Say
@Nukem That's not realistic.
![]() |
|||
The following 1 user says Thank You to JariZ for this post:barata (08-07-2012) |
|
Post: #7
|
|||
|
|||
RE: Client Say
(08-07-2012 22:51)Deviler86 Wrote:(08-07-2012 22:42)Nukem Wrote: 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 ![]() |
|||
|
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: 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 ^^
|
|||
|
Post: #9
|
|||
|
|||
|
RE: Client Say
You can parse the player's team and use the color code accordingly to help it look more realistic.
![]() A casual conversation between barata and I about Nukem. |
|||
|
Post: #10
|
|||
|
|||
|
RE: Client Say
Thanks for the suggestion. Added SayAll(ServerClient, Message) and SayTeam(ServerClient, Message).
![]() |
|||
The following 1 user says Thank You to zxz0O0 for this post:Deviler86 (08-08-2012) |
|
« Next Oldest | Next Newest »
|
| 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 |
|
User(s) browsing this thread: 1 Guest(s)
Media Embeding by Simple Audio Video Embeder







![[-]](images/twilight/collapse.gif)

![[Image: MaEIQ.png]](http://i.imgur.com/MaEIQ.png)

![[Image: k5sVYyb.gif]](http://i.imgur.com/k5sVYyb.gif)
![[Image: compiling.png]](http://imgs.xkcd.com/comics/compiling.png)
![[Image: 30xhrep.png]](http://i48.tinypic.com/30xhrep.png)
![[Image: azuw.jpg]](http://imageshack.us/a/img29/2668/azuw.jpg)