The Exiled
http://theexiled.pwnageservers.com/forum/

o_O afk script?
http://theexiled.pwnageservers.com/forum/viewtopic.php?f=4&t=1491
Page 1 of 1

Author:  TE-Shugo [ Mon Aug 14, 2006 12:07 am ]
Post subject:  o_O afk script?

updated it :P
now u just say AFK and it will put u in obs and afk mode

Heres the first file name it
"ShugoAFKConfig.cs"

Code:
$YourName = "Shugo"; //Put your name here dont add any tags, Unless you dont have a space inbetween the tag and name.
$Shugo::AFK=false;

exec("ShugoAFKScript");


heres part 2, name it
"ShugoAFKScript.cs"

Code:
//Shugo AFK Script Part 2
//==============================
//Do not touch below unless you know what you are doing
//Please dont rip my code and say you made it
//I useally dont post my scripts on forums

function onClientMessage(%clientId,%msg)
{
   if($YourName == "")
   {
      remoteCP(2048,"<jc><f1>Shugo: ERROR, Check Console", 5);
      echo(" ");
      echo("Please type your name inside the file.cs");
      echo("But for right now just type");
      echo("$YourName = \""@Client::getName(%clientId)@"\";");
      echo("in your console");
      echo(" ");
      return true;
   }
   if(Client::getName(%clientId)==$YourName)
   {
   Shugo::Activate(%clientId,%msg);
   return true;
   }
   else
   {
      Shugo::AFK(%clientId, %msg);
      return true;
   }
}

function Shugo::Activate(%clientId, %msg)
{
   if(%msg=="AFK" || %msg=="afk" && $Shugo::AFK=="false")
   {
   remoteEval(2048, "scoresOn");
   clientmenuselect("changeteams");
   clientmenuselect("-2");
   remoteCP(2048, "<jc><f3>Shugo: <f1>Activating AFK Mode", 5);
   schedule("$Shugo::AFK=true;",1);
   return true;
   }
   if(%msg=="Bak" || %msg=="Back" || %msg=="back" || %msg=="bak" && $Shugo::AFK=="true")
   {
   remoteEval(2048, "scoresOn");
   clientmenuselect("changeteams");
   clientmenuselect("1");
   remoteCP(2048, "<jc><f3>Shugo: <f1>Disableing AFK Mode", 5);
   $Shugo::AFK=false;
   return true;
   }
}
   
function Shugo::AFK(%clientId, %msg)
{
   $PersonName = Client::getName(%clientId);
   if(Client::getName(%clientId)==$YourName)
   {
      return;
   }
   else if(String::findSubStr(%msg, $YourName) != -1 && $Shugo::AFK)
   {
      say(0,"Sorry "@$PersonName@" but i am AFK right now~wsorry");
   }
}

function onClientJoin(%clientId)
{
   exec("ShugoAFKScript.cs");
}

function onClientDrop(%clientId)
{
   if(Client::getName(%clientId)==$YourName)
   {
   $Shugo::AFK=false;
      return true;
   }
}


have fun ^^, and hello TE again

Author:  TE-Braveskin [ Mon Aug 14, 2006 8:22 pm ]
Post subject: 

Are you challenging me for the title of Clan Coder?

Author:  TE-Hammy [ Mon Aug 14, 2006 9:23 pm ]
Post subject: 

pfft, you dont even have that. thats nox's job :|

Author:  TE-Shugo [ Mon Aug 14, 2006 9:29 pm ]
Post subject: 

TE-Braveskin wrote:
Are you challenging me for the title of Clan Coder?


:twisted: :twisted: :P

Author:  TE-Braveskin [ Mon Aug 14, 2006 10:09 pm ]
Post subject: 

O please, Im the coder of TE. I call a code duel!

Author:  TE-Hammy [ Tue Aug 15, 2006 7:56 am ]
Post subject: 

i call... noone, I have no fone D:

Author:  TwiZtid [ Fri Aug 18, 2006 5:21 pm ]
Post subject: 

lol Hammy. I don't really think we have a person in charge of making scripts. Shugo and Braveskin, if either of you think you are the person in charge of making scripts for TE, you might wanna read the description under "Modding" in "The Exiled Forum Index" and read that everytime you check the forums.

Author:  TE-4ev3r [ Mon Aug 21, 2006 7:49 pm ]
Post subject: 

That'd be like me being the master skinner. I wouldn't get mad at Hybrd cuz he tried skinning, even though my skins are obviously better and more likeable :P (just messin' hybrd)

Author:  TE-Shugo [ Thu Sep 07, 2006 7:44 pm ]
Post subject: 

Yeah...

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/