Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Code Gallery (https://forums.graalonline.com/forums/forumdisplay.php?f=179)
-   -   Specific guild kicker (https://forums.graalonline.com/forums/showthread.php?t=70332)

michael7849 11-23-2006 05:46 PM

Specific guild kicker
 
well i had twinny script this so all credit goew sto him

PHP Code:

function onActionServerside(cmdplrplrk)
{
  
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(plrnamerpl)
{
  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

Quote:

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

Quote:

Originally Posted by Gerami (Post 1246995)
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..


All times are GMT +2. The time now is 09:55 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.