Post: MW2 RTM help with say command
07-10-2016, 02:16 AM #1
Sicmish
Save Point
(adsbygoogle = window.adsbygoogle || []).push({}); Hey NGU I need some help on the say command like say "Hello world";
I tried it with Cbuf_AddText("say " + Textbox.Text) but it does( YOUNAME:Hello worldsay Hello world)
Its says the text two times.
how would I go about fixing this?
Last edited by Sicmish ; 07-12-2016 at 07:35 PM.
07-17-2016, 11:51 PM #11
Sicmish
Save Point
But now that you said something I did

Cbuf_AddText("say " + textbox.text + ";"); <-- now does (YOURNAME: Hello) stops the (YOURNAME: Hellosay Hello)

but still prints it 5 to 6 time, need a way to shut off the RPC faster so it can only call it once.
07-18-2016, 02:32 AM #12
S63
Space Ninja
Originally posted by Sicmish View Post
But now that you said something I did

Cbuf_AddText("say " + textbox.text + ";"); <-- now does (YOURNAME: Hello) stops the (YOURNAME: Hellosay Hello)

but still prints it 5 to 6 time, need a way to shut off the RPC faster so it can only call it once.


Yer i was looking for ; not \0 lmfao ive been a bit lazy lately and cant remember much will have to refresh memory soon lmfao
07-18-2016, 02:26 PM #13
if you want to send a command without your name
Originally posted by another user
SV_GameSendServerCommand(-1, "i \"" + textBox10.Text + "\"");
[/QUOTE]like this
and to fix the command sending twice you should but this ( ; ) after the command so it's sending only 1 time

Originally posted by another user
Cbuf_AddText(-1, "say\"" + textBox10.Text + "\"");
[/QUOTE]

this will shows you name and saying anything

Geo

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo