View Single Post
  #1  
Old 09-25-2011, 06:28 PM
Nogross Nogross is offline
Registered User
Nogross's Avatar
Join Date: Feb 2011
Location: Germany
Posts: 23
Nogross is an unknown quantity at this point
Send a message via ICQ to Nogross
Exclamation Event Kick System Proplem

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
Reply With Quote