Quote:
Originally Posted by cbk1994
PHP Code:
//#CLIENTSIDE
function onRemotePlayerChats(pl) {
if (pl.account == "whatever") {
if (pl.chat == "death") {
player.chat = "I have been death'd.";
}
}
}
I guess that would work, but you're probably better off going serverside. I don't know exactly what you're trying t odo.
|
You can't do onPlayerChat() serverside inside a Weapon and I think what you suggested won't work either. (If I understood the poster correct)
If I understood you correct, you want to be able to say something and something happens inside the weapon of another player, without you having that or any other weapon related to it?
I think that's impossible, since onPlayerChat() is clientside only in Weapons.
You'd need to have the Weapon too.