• September 22, 2024, 01:19:17 am
Welcome, guest! Please login or register.

Welcome to The Grand Theft Auto European City Community!

Author Topic: Suggestion Add /AFK Command  (Read 928 times)

0 Members and 1 Guest are viewing this topic.

Offline Sixsine

  • Colonel Staff
  • *
  • Posts: 530
  • Country: 00
  • Gender: Male
  • Admin
    • View Profile
Suggestion Add /AFK Command
« on: May 12, 2020, 02:40:38 pm »
Suggestion for:Server
Your suggestion so add a simple command which display afk players
Extra notes:  like this one @Human.

Quote
else if ( ( cmd == "afk" ) || ( cmd == "afk" ) )
   {
      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]AFK Players" , player ); 
      if ( b ) MessagePlayer( "[#33cc00]Information: [#FFFFFF]: " + b + "" , player );         
      else MessagePlayer( "[#009900][AFK][#ffffff] None " , player );
       
}




Offline Hazard

  • Donator
  • General of EC
  • *
  • Posts: 1429
  • Country: pk
  • Gender: Male
  • RELAX!
    • View Profile
  • Ingame-Nick: [RT]Hazard
  • Clan: RT
Re: Suggestion Add /AFK Command
« Reply #1 on: May 12, 2020, 04:26:54 pm »
The status of a player is shown when you do /fps or /ping. It shows whether the player is away or in the game.

Offline Sixsine

  • Colonel Staff
  • *
  • Posts: 530
  • Country: 00
  • Gender: Male
  • Admin
    • View Profile
Re: Suggestion Add /AFK Command
« Reply #2 on: May 12, 2020, 05:15:36 pm »
The status of a player is shown when you do /fps or /ping. It shows whether the player is away or in the game.
how lol?

Offline Hazard

  • Donator
  • General of EC
  • *
  • Posts: 1429
  • Country: pk
  • Gender: Male
  • RELAX!
    • View Profile
  • Ingame-Nick: [RT]Hazard
  • Clan: RT
Re: Suggestion Add /AFK Command
« Reply #3 on: May 12, 2020, 05:37:03 pm »
If the player is not AFK, it will show "Away: not true" | and if the player is AFK, it will show "Away: true"

Offline Sixsine

  • Colonel Staff
  • *
  • Posts: 530
  • Country: 00
  • Gender: Male
  • Admin
    • View Profile
Re: Suggestion Add /AFK Command
« Reply #4 on: May 12, 2020, 06:15:14 pm »
Oh thanks do you can remove this topic then?

Offline Hazard

  • Donator
  • General of EC
  • *
  • Posts: 1429
  • Country: pk
  • Gender: Male
  • RELAX!
    • View Profile
  • Ingame-Nick: [RT]Hazard
  • Clan: RT
Re: Suggestion Add /AFK Command
« Reply #5 on: May 12, 2020, 06:44:06 pm »
Locked.