Having issues connecting to graal right now.. Either its taking forever or my connection isnt working properly.
However, you might want to take into consideration that doing a script like this risks flooding the rc. Players would be able to make RC useless for staff by spamming it non-stop.
Alternatively, to fix the non-displayed message problem. You could give the weapon to all the players and use something similar to this.
This would tell all players to trigger the action to send message to rc, this would be under "//#CLIENTSIDE"
PHP Code:
for ( temp.p : allplayers ) {
with (temp.p) {
triggerServer( "gui", this.name, "sendtorc", message );
}
}
This would be above "//#CLIENTSIDE", it would receive the trigger.
PHP Code:
function ActionServerSide() {
if ( params[0] == "senttorc" ) {
SendToRc(params[1]);
}
}
You might need to play around with this but that is what I would probably do.
When sending an action to the server param[#] refers to each param after "this.name" in the command.
Make sure that the actionserverside is ABOVE any part of the script that is //#CLIENTSIDE.. and the first code I mentioned..
EDIT:
Damn Tig, you beat me to the substring part.. To explain why Tig posted that tho, substring(#) means to take everything from the second character all the wat to the end.. This would eliminate "//" at the beginning of the message.