AFK - System By [KM]Helathien

[KM]Helathien

  • Newbie
  • Posts: 21
AFK - System By [KM]Helathien
«  »Last edited
AFK SYSTEM

This Is A AFK ( away from keyboard ) script by me. Its Actually just a command that Shows The Players Who Are AFK.
I Dont Know If Anyone has Posted It Before, But It Has Been Made By Me.

Code: [Select]
else if ( ( cmd == "afk" ) || ( cmd == "afks" ) )
   {
      local plr, b;
      for( local i = 0; i <= GetMaxPlayers(); i++ )
      {
       plr = FindPlayer( i );
  if ( ( plr ) && ( plr.Away ) )
       {
      if ( b ) b = b + ", " + plr.Name + ""
      else b = plr.Name + ""
       }
      }
      MessagePlayer( "[#33cc00]Information: [#ffffff]Displaying List Of People Who Are Afk" , player ); 
      if ( b ) MessagePlayer( "[#33cc00]Information: [#FFFFFF]: " + b + "" , player );         
      else MessagePlayer( "[#009900][AFK][#ffffff] None " , player );
       
}


Guys I Didnt Knew Where To Actually Post This Topic In. SO Plz Forgive me if i posted it in the Wrong Board.

Hope It Helps.

For Those Of U who dont know what afk is, it is when you minimize your game( i am talking about this command) it shows people who have minimized their games.
Note: According To This People Who Are Not Spawned ( Still On Spawn Screen ) are also considered Away.
Feel free to PM me for any help.
If I am not available on the forum come to VKs Official Server I am usually there.

Mohamed

  • Full Member
  • Regards, We3da
  • Posts: 247
Feel Free To PM Me For Any Support, I'm Care.
Anyway u can Contact Me Ingame!
Ingame Name: [AFt]We3da^
My Own Server: ViceEvil Server

Kelvinvenema

  • Newbie
  • Posts: 27
Re: AFK - System By [KM]Helathien
« Reply #2,  »
else if ( ( cmd == "afk" ) || ( cmd == "afks" ) )
   {
      local plr, b;
      for( local i = 0; i <= GetMaxPlayers(); i++ )
      {
       plr = FindPlayer( i );
  if ( ( plr ) && ( plr.Away ) )
       {
      if ( b ) b = b + ", " + plr.Name + ""
      else b = plr.Name + ""
       }
      }
      MessagePlayer( "[#33cc00]Information: [#ffffff]Displaying List Of People Who Are Afk" , player ); 
      if ( b ) MessagePlayer( "[#33cc00]Information: [#FFFFFF]: " + b + "" , player );         
      else MessagePlayer( "[#009900][AFK][#ffffff] None " , player );
       
}




Nice work Bro ;)