Quote:
Originally Posted by Hezzy002
PHP Code:
function onActionServerside(action) {
if (action == "play") {
song = params[1];
for (pl : players) {
pl.triggerClient("gui", name, "play", song);
}
}
}
//#CLIENTSIDE
function onPlayerChats() {
temp.toks = player.chat.tokenize();
if (temp.toks[0] == "/playsong") {
triggerserver("gui", name, temp.toks[1]);
}
}
function onActionClientside(action) {
if (action == play) {
song = params[1];
play(song);
}
}
Ya?
|
Yours seems shorter and more efficient. :3