Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > Code Gallery
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 11-23-2006, 05:46 PM
michael7849 michael7849 is offline
Playerworld21 Manager
Join Date: Aug 2006
Posts: 81
michael7849 is an unknown quantity at this point
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);
  }

__________________
Graal Account: michael7849
Graal Nick: element
AIM: Garbagemonkey32
MSN: [email protected]
Email: [email protected]
Server: Playerworld21

PRIVATE MESSAGE ME HERE

Buddy me

My profile

Last edited by Darlene159 : Today at 12:30AM. Reason: Added more spam to your post.

Stefan you need to read your pms more...

G OTO MY myspace.com/mikeandu

YES I AM EMO/GOTH

Last edited by Skyld; 11-25-2006 at 02:01 AM.. Reason: Use PHP tags! >:O
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:32 AM.


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