Well first you must know why it doesn't work. Players send certain variables to the server, and thus that data is then shared with other visible players. These variables include important data like player.x, player.y, player.attr[0-30], looks and so on and so forth. This data is needed for you to keep an accurate account of other players(knowing where they are, what they look like and so on). However besides those important variables, many are not sent. This includes things like player.zoom, client.vars, and such.
In order to share that data, you're going to have to force it to other players using one of the variables that ARE shared, and you will accomplish this using player.attr's.
PHP Code:
function onPlayerChats() {
if (player.chat.starts("/zoom ")) {
temp.newzoom = player.chat.substring(7).trim();
// Be careful not to overwrite attr's already being used by other scripts
player.attr[5] = newzoom;
}
}
Now what you'll also need to designate a special gani as an attr as well. This gani will contain SCRIPT portion that sets the player's zoom to attr[5]. Since the gani is also an attr, other players will load the script from the gani, which will load your attr[5], thus setting your zoom appropriately when they see you.
PHP Code:
function onPlayerChats() {
if (player.chat.starts("/zoom ")) {
temp.newzoom = player.chat.substring(7).trim();
// Be careful not to overwrite attr's already being used by other scripts
player.attr[5] = newzoom;
player.attr[6] = "Fysez_playerzoom.gani";
}
}
I have no gani to share though for this, so you'll have to do the research yourself. Eventually you can write up a small parsing script that lets you compress all of this data into one attr, to save data. You can also pass other things like player.alpha, player.stretch and so on.