PHP Code:
//#CLIENTSIDE
function onCreated() {
}
function onPlayerChats() {
if (player.chat.starts("/")) {
temp.toks = player.chat.tokenize();
temp.com = player.chat.substring(1, temp.toks[0].length());
echo(temp.com);
switch (@temp.com) {
case "global":
player.chat = "TELL IT ALL!";
break;
}
}
else {
// Local Chat
}
}
function onTimeout() {
}
/* CONFIGURATION */
public function config() {
// Font
this.msgfont = "Comic Sans MS";
// Message Time
this.msgtime = 5;
}
/* CONFIGURATION */
Am I stupid or is switch() not working for a reason?