PHP Code:
// Where is the triggerserver?
//#CLIENTSIDE
function onPlayerChats() {
if (player.chat == "/kick") {
for (temp.pl: players) {
if (mousex in | temp.pl.x, temp.pl.x + 3 | && mousey in | temp.pl.y, temp.pl.y + 3 | ) {
triggerserver("gui", name, "KickPlayer", temp.pl);
}
}
}
} // Missed a brace.
function KickPlayer() {
player.x = 30;
player.y = 30;
}
The corrections I could make are in the script.