Thread: Small question!
View Single Post
  #1  
Old 02-12-2010, 03:09 AM
Jimbo33 Jimbo33 is offline
****
Jimbo33's Avatar
Join Date: Jan 2008
Location: Canada
Posts: 74
Jimbo33 is on a distinguished road
Send a message via AIM to Jimbo33 Send a message via MSN to Jimbo33
Small question!

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
Reply With Quote