Thread: kicking?
View Single Post
  #2  
Old 11-11-2007, 01:12 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Yes

PHP Code:
function onMouseDown(mode)
{
  if (
player.chat == ":kick")
  {
    if (
mode == "left")
    {
      for (
pl : players)
      {
        if (
mousex in |pl.x, pl.x+1.5|)
        {
          if (
mousey in |pl.y, pl.y+2|)
          {
            
triggerserver("gui", this.name, "kickthatfool", pl.account);
            break;
          }
        }
      }
    }
  }
} 
Change the 1.5 and 2 to whatever range you want to have.
Reply With Quote