PDA

View Full Version : Kicking script


xAndrewx
11-23-2006, 05:08 PM
Add the /* */ part's in to a level and name the class 'level_objectkick'. ^^


/*
function onCreated()
{
this.levelGuild = "Andrew's Guild";
this.kickLevel = {"levelname.nw", kickingx, kickingy};
this.join("level_objectkick");
}
*/
function onPlayerChats()
{
if(player.guild != this.levelGuild)
{
return false;
}
if(player.chat.substring(0, 5) == ":kick")
{
temp.currentPlayer = findPlayer(player.chat.substring(5).trim());
if (temp.currentPlayer == "")
{
return false;
}
if (temp.currentPlayer.level.name != player.level.name)
{
return false;
}
temp.currentPlayer.setlevel2(this.kickLevel[0], this.kickLevel[1], this.kickLevel[2]);
}
}

Crono
11-23-2006, 05:35 PM
Rep ++

Vlad1
07-23-2012, 06:34 AM
Nice Andrew looks useful