View Single Post
  #8  
Old 03-30-2006, 03:56 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Hmm, that would not give an accurate representation of where the person has been kicked from. It would only say what level the person who kicked the player was in.

PHP Code:
// #p(0) - Action Type (kick)
// #p(1) - Account Name of player to kick
if(actionserverside) {
  if(
strequals(#a,wild8900)) {
    
if(strequals(#p(0),kick)) {
      
this.online 0;
      
setstring this.adminname,#a;
  
      
with(getplayer(#p(1))) {
        
this.online 1;

        
setstring this.levelname,#L;
        
setlevel2 onlinestartlocal.nw3030;
        
say2 You have been kicked by#s(this.adminname)#bFrom the level: #s(this.levelname);
      
}

      if(
this.online == 1) {
        
say2 #p(1) was successfully kicked.;
      
} else {
        
say2 #p(1) is not online.;
      
}
    }
  }
}

//#CLIENTSIDE
if(playerchats) {
  if(
startswith(/kick,#c)) {
    
triggeraction 0,0,serverside,WEAPONNAME,kick#T(#e(5,-1,#c));
  
}

You can probably combine parts of that, and the one hotrian provided. This one alerts you if the person was actually kicked or not, based on their onlinestatus.
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
Reply With Quote