Raised This Month: $32 Target: $400
 8% 

[CS:GO] AFK Group Targeting


Post New Thread Reply   
 
Thread Tools Display Modes
Author
Eviona
Junior Member
Join Date: May 2020
Plugin ID:
7130
Plugin Version:
Plugin Category:
Admin Commands
Plugin Game:
Counter-Strike: GO
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    Allows admins to group-target afk players.
    Old 05-27-2020 , 03:25   [CS:GO] AFK Group Targeting
    Reply With Quote #1

    AFK Group Targeting

    I was inspired by DarthNinja (https://forums.alliedmods.net/showthread.php?p=1682853). So i wanted to make this plugin. Its pretty easy to use, with this plugin you will be able to target afk players.

    Example:
    !slay @afk
    !kick @afk
    Attached Files
    File Type: sp Get Plugin or Get Source (afksj.sp - 531 views - 1.6 KB)

    Last edited by Eviona; 05-27-2020 at 03:59.
    Eviona is offline
    Psyk0tik
    Veteran Member
    Join Date: May 2012
    Location: Homeless
    Old 05-28-2020 , 03:10   Re: [CS:GO] AFK Group Targeting
    Reply With Quote #2

    Why do you create a 30-second timer on round_start that does nothing significant?

    PHP Code:
    public Action AfkKontrol(Handle timer)
    {
        new 
    i;
        for(
    i=1;i<=MaxClientsi++)
        {
            if(
    IsClientConnected(i) && IsClientInGame(i) && IsPlayerAlive(i))
            {
                if(
    iSonHareket[i] + 20 <= GetTime())
                {
                }
            }
        }

    __________________
    Psyk0tik is offline
    Eviona
    Junior Member
    Join Date: May 2020
    Old 05-28-2020 , 10:00   Re: [CS:GO] AFK Group Targeting
    Reply With Quote #3

    Quote:
    Originally Posted by Crasher_3637 View Post
    Why do you create a 30-second timer on round_start that does nothing significant?

    PHP Code:
    public Action AfkKontrol(Handle timer)
    {
        new 
    i;
        for(
    i=1;i<=MaxClientsi++)
        {
            if(
    IsClientConnected(i) && IsClientInGame(i) && IsPlayerAlive(i))
            {
                if(
    iSonHareket[i] + 20 <= GetTime())
                {
                }
            }
        }

    It was slaying afk players automatically but i decided to remove that. Code still exists
    Eviona is offline
    AbraCadabra
    Member
    Join Date: Aug 2013
    Old 05-28-2020 , 14:47   Re: [CS:GO] AFK Group Targeting
    Reply With Quote #4

    Hi, can you make a command for putting afk to specs?
    AbraCadabra is offline
    Eviona
    Junior Member
    Join Date: May 2020
    Old 05-28-2020 , 15:20   Re: [CS:GO] AFK Group Targeting
    Reply With Quote #5

    Quote:
    Originally Posted by AbraCadabra View Post
    Hi, can you make a command for putting afk to specs?
    Plugin already adds a group target for that, so you can type !team @afk spec
    Eviona is offline
    Reply


    Thread Tools
    Display Modes

    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 -4. The time now is 01:21.


    Powered by vBulletin®
    Copyright ©2000 - 2024, vBulletin Solutions, Inc.
    Theme made by Freecode