Post: [Release/1.14] G_Say
07-10-2014, 12:55 AM #1
Taylor
Former Black Knight.
(adsbygoogle = window.adsbygoogle || []).push({});

I know you can use Cbuf_AddText to call a say command, but that is only for local clients only, so if you want to call a say command on other clients you can use G_Say. Hence why I made this thread. :p

G_Say Function:[/SIZE]
    
public static void G_Say(int calledOnClient, int displayedForClient, int team)
{
RPC.Call(0x00179F88, G_Entity(calledOnClient), G_Entity(displayedForClient), team, "tears");
}


Function Needed:[/SIZE]
    
public static uint G_Entity(int clientIndex)
{
return 0x1319800 + (0x280 * (uint)clientIndex);
}


Note: You will also need the working/non-freezing RPC originally by You must login or register to view this content. fixed by You must login or register to view this content. found You must login or register to view this content.[/SIZE]
(adsbygoogle = window.adsbygoogle || []).push({});

The following 12 users say thank you to Taylor for this useful post:

CanadianModding, Dan Dactyl, Joel, Joren, NotALegitPlayer, Notorious, SnaY, Ciri, Turk_Warrior, ViolentFelon, Hash847, Zambie
07-10-2014, 10:13 AM #11
SC58
Former Staff
Originally posted by Knife View Post
I Think there is an SV_GameSendServerCommand for it
e or f or something, i dont remmember.


'h' - chat message
'i' - team chat message
07-10-2014, 10:18 AM #12
Mango_Knife
In my man cave
Originally posted by SC58 View Post
'h' - chat message
'i' - team chat message


Yeah that
And you can use ;say "Hello"
To chat without host.
07-10-2014, 10:33 AM #13
Taylor
Former Black Knight.
Originally posted by Knife View Post
Yeah that
And you can use ;say "Hello"
To chat without host.


Regardless, the function works. I understand that you cal call it other ways but still. :p It's just something I put together.
07-10-2014, 10:34 AM #14
Taylor
Former Black Knight.
Originally posted by SC58 View Post
'h' - chat message
'i' - team chat message


Yeah, you can do that too but as I said to mango. Regardless it's just a little function I threw together. I saw people using cbuf and was like wat, aha.
07-10-2014, 10:53 AM #15
Mango_Knife
In my man cave
Originally posted by Taylor View Post
Regardless, the function works. I understand that you cal call it other ways but still. :p It's just something I put together.


Sure np
Just saying
But yeah sometimes its fun to use addresses and not dvars like you did Smile
07-10-2014, 10:54 AM #16
Taylor
Former Black Knight.
Originally posted by Knife View Post
Sure np
Just saying
But yeah sometimes its fun to use addresses and not dvars like you did Smile


Personally I think using a function is more clean in my code then calling an sv command or something.
07-10-2014, 10:55 AM #17
Mango_Knife
In my man cave
Originally posted by Taylor View Post
Personally I think using a function is more clean in my code then calling an sv command or something.


Well yeah i think that 2
In my tools most of the times im using the address, and not dvars :p
07-10-2014, 07:53 PM #18
CanadianModding
Do a barrel roll!
much hax so leet

The following user thanked CanadianModding for this useful post:

Taylor
07-10-2014, 08:19 PM #19
Taylor
Former Black Knight.
Originally posted by CanadianModding View Post
much hax so leet


Such l33t, much c0d3s, very RPC.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo