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

AFK Script
http://theexiled.pwnageservers.com/forum/viewtopic.php?f=4&t=996
Page 1 of 1

Author:  TE-Shugo [ Sat Jan 14, 2006 1:44 am ]
Post subject:  AFK Script

for all you guys who are always AFK heres a script i made just for you XD *looks at angelus* 8) :lol:

for 1. make sure you make the file name ShugoAFKScript.cs or it wont work right

Code:
//put ur name in here doesnt have to be full name
//like mine i just put shugo, when my full is -|TE|- Shugo
$YourName = "";

//right here make the # u want right no its set to
//1 on the keypad
bindCommand(keyboard0, make, "numpad1", TO, "Shugo::Activate::AFK();");
//==============================
//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
//But i do this from the kindness of my heart >:) >:)
function Shugo::Activate::AFK(%clientId)
{
   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($Shugo::AFK == "false")
   {
      $Shugo::AFK = "true";
      say(0,"I am now AFK.");
      return true;
   }
   else if($Shugo::AFK == "true")
   {
      $Shugo::AFK = false;
      say(0,"I am now back from being AFK.");
      return true;
   }
}

function onClientMessage(%clientId,%msg)
{
   Shugo::AFK(%clientId, %msg);
   return true;
}
   
function Shugo::AFK(%clientId, %msg)
{
   $PersonName = Client::getName(%clientId);
   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");
}

Author:  TE-Pengwin [ Sat Jan 14, 2006 9:42 am ]
Post subject: 

i might us ethis

Author:  TE-Hammy [ Sat Jan 14, 2006 10:11 am ]
Post subject: 

looks like actionscript for flash x_x

Author:  TE-Shugo [ Sat Jan 14, 2006 12:12 pm ]
Post subject: 

XD i 4got to add sumthing so look at the update

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