Thread: Staffblocks
View Single Post
  #6  
Old 12-02-2006, 04:39 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Haha, Yeah.

I just had mine completely serverside (except for right clicking to get the commands.)

PHP Code:
function onCreated() {
  
image "uprising_staffblock.gif"//You can put your own image here.
  
drawunderplayer();
}
function 
onActionLeftMouse() {
  if (
player.account in serverr.admins) { //You can change this to whatever checks for staff powers
    
if (player.chat.starts("/destroy")) {
      
client.messages.add("Destroyed staffblock" SPC id); //The messages.add are for a messages system I had
      
destroy();
    }
    else if (
player.chat.starts("/message")) {
      
client.messages.add("Set message of staffblock" SPC id);
      
message(player.chat.substring(9,-1));
    }
  }

__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote