View Single Post
  #3  
Old 05-23-2009, 10:21 AM
Pelikano Pelikano is offline
Registered User
Pelikano's Avatar
Join Date: Oct 2008
Posts: 1,133
Pelikano has a little shameless behaviour in the past
Quote:
Originally Posted by cbk1994 View Post
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.
Reply With Quote