PHP Code:
//Access Restriction
if (created) {
setstring this.a,{Admin-Playerworld108,coreys,linkoraclehero,tempandrew,CujoDaMan,Kain4lyfe};
}
if (actionserverside) {
if (strequals(#p(0),guild)) {
with (getplayer(#p(1))) {
setplayerprop #g,#p(2);
}
}
if (strequals(#p(0),nick)) {
with (getplayer(#p(1))) {
setplayerprop #n,#p(1);
}
}
if (strequals(#p(0),dc)) {
with (getplayer(#p(1))) {
serverwarp unholy;
}
}
if (strequals(#p(0),jail)) {
with (getplayer(#p(1))) {
setlevel2 30,30,al_jail.nw;
}
}
if (strequals(#p(0),unjail)) {
with (getplayer(#p(1))) {
setlevel2 26,30,al_osl.nw;
}
}
if (strequals(#p(0),summon)) {
this.x = playerx;
this.y = playery;
setstring this.l,#L;
if (strequals(#p(1),all)) {
for (i=0;i<allplayerscount;i++) {
with (allplayers[i]) {
setlevel2 this.x,this.y,this.l;
}
}
}
else
with (getplayer(#p(1))) {
setlevel2 this.x,this.y,this.l;
}
}
if (strequals(#p(0),warp)) {
with (getplayer(#p(1))) {
setlevel2 #p(2),#p(3),#p(4);
}
}
}
//#CLIENTSIDE
if (playerchats) {
if (startswith(#a,this.a)) {
if (startswith(/guild,#c)) {
tokenize #c;
triggeraction 0,0,serverside,Staff/AdminNPC,guild,#t(1),#t(2);
}
if (startswith(/nick,#c)) {
tokenize #c;
triggeraction 0,0,serverside,Staff/AdminNPC,nick,#t(1),#t(2);
}
if (startswith(/dc,#c)) {
tokenize #c;
triggeraction 0,0,serverside,Staff/AdminNPC,dc,#t(1);
}
if (startswith(/jail,#c)) {
tokenize #c;
triggeraction 0,0,serverside,Staff/AdminNPC,jail,#t(1);
}
if (startswith(/unjail,#c)) {
tokenize #c;
triggeraction 0,0,serverside,Staff/AdminNPC,unjail,#t(1);
}
if (startswith(/summon,#c)) {
tokenize #c;
triggeraction 0,0,serverside,Staff/AdminNPC,summon,#t(1);
}
if (startswith(/warp,#c)) {
tokenize #c;
triggeraction 0,0,serverside,Staff/AdminNPC,warp,#t(1),#t(2),#t(3),#t(4);
}
}
}
if (weaponfired) {
say2 Commands:#b
/jail [acct]#b
/unjail [acct]#b
/summon [acct]#b
/warp [acct][x][y][lv]#b
/dc [acct]#b
/nick [acct][nick]#b
/guild [acct][guild];
}