View Single Post
  #12  
Old 04-29-2011, 08:08 PM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by Emera View Post
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 View Post
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.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote