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.nw, 30, 30;
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.