Quote:
Originally Posted by Emera
Hi i am trying to make a script where normal players can chat on RC by starting there message with //
PHP Code:
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat.starts("//")) {
SendToRc(temp.player.chat);
}
}
i think its the temp.player.chat bit but can somebody help please?
thanks in advance!
|
I know you said you fixed it, but just for future reference, you can fix this by removing the "temp." prefix to inside of "sendtorc" and also by changing it to: player.chat.substring(2).
Quote:
Originally Posted by Emera
Ok know how can i get other RC's to see the chat. I can only see mine and not other players. And yes, they all have the weapon.
|
You have to be logged into client-rc for your chat to display to other RCs in the RC chat. If you are logged into client-rc it should work fine.