I've been having trouble with getting things that happen clientside on your screen to appear on everybody elses's screens.
Right now my goal is to rescript chat. I had this idea, and I took a little script that my friend had used on a sign in a level and altered it a little bit so that it showed above the player as chat.
Surprisingly, I was able to actually get it to work, but it only works clientside and nobody else can see it.
Could someone help with this and explain it to me so that in the future, when I do something similar, I won't have to ask for help?
PHP Code:
//#CLIENTSIDE
function onPlayerChats()
{
player.msg = " " @ player.chat @ " ";
setTimer(0.05);
hide();
}
function onTimeout()
{
with (findImg(-1))
{
text = player.msg;
x = player.x + 1.5;
y = player.y - 2;
style = "bc";
layer = 1;
red = 1;
green = 1;
blue = 1;
zoom = 1;
}
setTimer(0.05);
}
Oh, and on a side note, is there a command that you can use to hide your default chat text?