This should help.
PHP Code:
function kick_all() {
for (temp.pl : players) {
if (temp.pl.account == player.account) {
continue; //This way you're not kicked.
}
if (temp.pl.guild in {"Events Team"}) {
continue; //Prevents other Events Team members from being kicked.
}
temp.pl.setlevel2("level.nw", 30, 30);
}
}