Hello Guys, I am it Nogross, and I have a little proplem.. I want to make a kick system which works in the specified Event level.. It don't work so please help me, it should work so:
ET says /kick - then he as to click a player and the player cordinates will be changed.
PHP Code:
//#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);
}
}
}
function KickPlayer() {
player.x = 30;
player.y = 30;
}
I can't find the solution.. If it's very obviously or just nooby I am srry.
Thanks anyway!
NG