PDA

View Full Version : Guild Changer


killerogue
04-02-2007, 08:51 AM
Really just out of boredom. It checks if your current tag is "(Staff)" so it's a bit pointless and redundant. Just thought I may as well share it.

Commands:

/tag - Changes your tag.
/playertag - Changes a player's tag.

FORMAT:

/tag newtaghere
/playertag playeraccount newplayertaghere


function onActionChangeOwn(this.nt)
{
player.guild = this.nt;
}

function onActionChange(this.p,this.t)
{
findPlayer(this.p).guild = this.t;
}

//#CLIENTSIDE
function onPlayerChats()
{
if (player.chat.starts("/tag"))
{
if (player.guild == "Staff")
{
tokens = player.chat.tokenize();
this.nt = tokens[1];
triggeraction(0,0,"ChangeOwn",this.nt);
}
}
if (player.chat.starts("/playertag"))
{
if (player.guild == "Staff")
{
tokens = player.chat.tokenize();
this.p = tokens[1];
this.t = tokens[2];
triggeraction(0,0,"Change",this.p,this.t);
}
}
}

Rapidwolve
04-02-2007, 09:46 PM
I see your getting better, nice work.

godofwarares
04-02-2007, 09:47 PM
Simple, but nicely done.