1. This can be used as a weapon on Remote Control
2. It is not used in a level
3. It is player.guild not set.guild
4. I don't understand how you can script partially, but don't even know what Remote Control is...
5. This one I made works like a charm.

Code:
// Scripted by JohnRaven (SFR)
 function onActionServerSide() {
switch (params[0]){
case "/pr":
player.guild = params[1];
break;
}
}

//#CLIENTSIDE
function onPlayerChats() {
if (player.chat.starts("/pr")){
player.guild == "Player Relations"
 }