View Single Post
  #2  
Old 06-08-2013, 03:25 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Just do whatever change you need clientside. Then it only affects the current player.

Simple example:

PHP Code:
// display block.png unless you have clientr.boo set;
// if it _is_ set, then, display bcalarmclock.png instead
//#CLIENTSIDE
function onPlayerEnters() {
  if (
player.clientr.boo) {
    
this.setImg("bcalarmclock.png");
  } else {
    
this.setImg("block.png");
  }

You do the same thing for characters, substituting the various body parts for the setImg. You can change the check to check if, for example, a player has a weapon.
__________________
Reply With Quote