Hi,
I'm making a class selection GUI, and I want the player to get a specific weapon AND to get clientr.playerclass set to something when selecting a specific class, but the problem is that the stuff happening on button action are clientside, while adding weapons and editing those variables is serverside. Someone told me long ago how to call stuff serverside from clientside, something like:
HTML Code:
triggeraction(this.x,this.y ... or something like that?
So yeah, here's the part of my script after the player has pushed the button to select his class:
PHP Code:
function ClassSelect_Button3.onAction() {
clientr.playerclass = "Swordsman";
addWeapon("-Swordsman/Skill1");
ClassSelect_Window1.destroy();
}
Obviously,the only thing working here is ClassSelect_Window1.destroy(), clientr.playerclass and addWeapon don't work because they have to be serverside...
HELP
