PDA

View Full Version : Specific guild kicker


michael7849
11-23-2006, 05:46 PM
well i had twinny script this so all credit goew sto him

function onActionServerside(cmd, plr, plrk)
{
pl = findplayer(plr);
if (cmd == "kickplr")
{
if (pl.level != NULL)
{
pl.chat = format("You've been kicked from (Guild) by %s",plrk);

pl.setlevel2("sand_a1.nw",10.6,14);
triggeraction(player.x,player.y,"clientside",name,plr,1);
}else{
triggeraction(player.x,player.y,"clientside",name,plr,0);
}
}
}
//#CLIENTSIDE
function onPlayerChats()
{
tok = player.chat.tokenize();
if (tok.starts("/kick"))
{
if (tok[1] != NULL && player.level.starts("(level)"))
{
//temp.kplayers.loadvars("Kick_Log-1.txt");
plrname = tok[1];
player.chat = format("Attempting to kick %s",plrname);
triggeraction(0,0,"serverside",name,"kickplr",plrname,player.account);
//sleep(.30);
//player.chat = format("Kicked... %s",plrname);
//temp.kplayers.savevars("Kick_Log-1.txt", 0);
//return false;
}
}
}

function onActionClientside(plrname, rpl)
{
if (rpl != NULL)
{
sleep(.30);
player.chat = format("You have successfully kicked %s from the restruant.",plrname);
}else{
sleep(.30);
player.chat = format("Failed to kick %s because (s)he is not online.",plrname);
}
}

Rapidwolve
11-24-2006, 10:41 PM
Format the script x.x

Twinny
11-25-2006, 05:13 AM
Changed a bit since i've last seen it =o

Gambet
11-25-2006, 05:27 AM
player.chat = format("You have successfully kicked %s from the restruant.",plrname);



Talk about typo :rolleyes:

Twinny
11-25-2006, 05:41 AM
I must have made the base for it.. i don't use format() and i don't remember using setTimer(0.30) =/

Also you use pl, plr and rpl...whats the go with that? x_x

Crono
11-25-2006, 12:48 PM
well i had twinny script this so all credit goew sto him

did you even ask him before posting it to begin with?

Chompy
11-25-2006, 02:59 PM
did you even ask him before posting it to begin with?

I think they just edited the originally script, like adding those setTimer's
too make it look like it is loading etc..