Try debugging it with echo's I.e:
PHP Code:
function onActionServerSide() {
echo("trigger received from " SPC player.account);
echo("trigger params: " @ params);
if (params[0] == "show") {
for (temp.pl: allplayers) {
if (pl.level.name == nil)
continue;
echo("triggering client " @ pl.account);
pl.triggerclient("gui", this.name, "disp");
}
}
if (params[0] == "sendpm") {
findplayer("pig132").sendPM(player.account @ " clicked!");
}
}
//#CLIENTSIDE
function onPlayerChats() {
echo("player chatted " @ player.chat
if (player.chat == "/test") { // You only had one = in your script before, should be double.
echo("triggering server");
triggerserver("gui", this.name, "show");
}
}
function onActionClientSide() {
echo("Trigger received: " @ params);
if (params[0] == "disp") {
echo("Displaying menu!");
CreateMenu();
}
}
echo's on the client-side will appear in your console (F2).
echo's on the server-side will appear on RC.
You'll be able to pinpoint exactly your script stops flowing this way.