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, 01:00 AM #2
Citadel
Samurai Poster
Nice I can't say I'll play mw2 anymore because of the cfg fgts but nice release
07-10-2014, 01:03 AM #3
Taylor
Former Black Knight.
Originally posted by Citadel View Post
Nice I can't say I'll play mw2 anymore because of the cfg fgts but nice release


Thanks, aha. It's just to call it via memory so I mean unless you are going to do that then you know. :p
07-10-2014, 01:05 AM #4
Citadel
Samurai Poster
Originally posted by Taylor View Post
Thanks, aha. It's just to call it via memory so I mean unless you are going to do that then you know. :p


Lol yeah I understand it Smile
This might help DarkOps with his tool. I'm gunna link him when I see him again Smile
07-10-2014, 01:05 AM #5
Taylor
Former Black Knight.
Originally posted by Citadel View Post
Lol yeah I understand it Smile
This might help DarkOps with his tool. I'm gunna link him when I see him again Smile


Thanks buddy. Smile
07-10-2014, 01:07 AM #6
Citadel
Samurai Poster
Originally posted by Taylor View Post
Thanks buddy. Smile


No problem xD.
Is there anyway to quote someone and have it link them to this thread or do they have to reply first to be able for the system to PM saying they were quoted on this thread
07-10-2014, 01:19 AM #7
Dan Dactyl
One Among The Fence
Nice Taylor!! Happy

The following user thanked Dan Dactyl for this useful post:

Taylor
07-10-2014, 01:24 AM #8
Taylor
Former Black Knight.
Originally posted by Dan
Nice Taylor!! Happy


Thanks Smile
07-10-2014, 07:59 AM #9
SC58
Former Staff
Originally posted by Taylor View Post

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]


lol i hope you know when you use cbuf_addtext and say command it send it to all client as it run's through the function ClientCommand and send it to G_Say, but idk much about G_say unless your saying if you wanna send text to client 5 only client 5 will see it?
You must login or register to view this content.
07-10-2014, 08:32 AM #10
Mango_Knife
In my man cave
I Think there is an SV_GameSendServerCommand for it
e or f or something, i dont remmember.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo