AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [CS:GO] AFK Group Targeting (https://forums.alliedmods.net/showthread.php?t=324782)

Eviona 05-27-2020 03:25

[CS:GO] AFK Group Targeting
 
1 Attachment(s)
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

Psyk0tik 05-28-2020 03:10

Re: [CS:GO] AFK Group Targeting
 
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())
            {
            }
        }
    }



Eviona 05-28-2020 10:00

Re: [CS:GO] AFK Group Targeting
 
Quote:

Originally Posted by Crasher_3637 (Post 2702723)
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 :crab:

AbraCadabra 05-28-2020 14:47

Re: [CS:GO] AFK Group Targeting
 
Hi, can you make a command for putting afk to specs?

Eviona 05-28-2020 15:20

Re: [CS:GO] AFK Group Targeting
 
Quote:

Originally Posted by AbraCadabra (Post 2702835)
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


All times are GMT -4. The time now is 18:23.

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