Raised This Month: $12 Target: $400
 3% 

[CS:S] Simple !afk !unafk Plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author
The SoupSpy
New Member
Join Date: Nov 2021
Plugin ID:
8168
Plugin Version:
1.00
Plugin Category:
All
Plugin Game:
Counter-Strike: Source
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    A plugin that provides players to use !afk and !unafk commands
    Old 08-31-2022 , 13:18   [CS:S] Simple !afk !unafk Plugin
    Reply With Quote #1

    This is a plugin which is as useful as simple it is.

    The plugin works in a really simple way. Players type !afk when they gotta go afk and !unafk once they come back.

    I know that there are plugins similar to this but I've never found a plugin like I wanted, so I decided to write one myself. Also since it's my very first plugin, I'd be appreciated if you corrected any of the errors you may find in the source code.

    This plugin doesn't support language preferences at the moment so you gotta change the language from the source code.

    !afk => Logs the player's current team if he is in any and then moves the player to the spectator team
    !unafk => Moves back the player to their old team. If the player hasn't been in any team before the plugin will move them to a random team.

    Cvars:
    Code:
    soup_afk_enable - Enables or disables the plugin. [ 1 = Enable | 0 = Disable ]
    ChangeLog
    Code:
    Edited so now you can only use the command if your hp is over 70 or if you are dead.
    GitHub
    Attached Files
    File Type: sp Get Plugin or Get Source (goAfk.sp - 93 views - 2.7 KB)
    File Type: smx goAfk.smx (15.0 KB, 192 views)
    File Type: sp Get Plugin or Get Source (goAFK_new.sp - 61 views - 3.1 KB)
    File Type: smx goAFK_new.smx (15.1 KB, 92 views)

    Last edited by The SoupSpy; 09-07-2022 at 14:06.
    The SoupSpy is offline
    L4D2Noob
    AlliedModders Donor
    Join Date: Mar 2020
    Location: Moscow
    Old 08-31-2022 , 18:10   Re: [CS:S] Simple !afk !unafk Plugin
    Reply With Quote #2

    Why shouldn't the player just be the spectator?
    __________________
    L4D2Noob is offline
    Send a message via ICQ to L4D2Noob Send a message via Skype™ to L4D2Noob
    The SoupSpy
    New Member
    Join Date: Nov 2021
    Old 08-31-2022 , 19:25   Re: [CS:S] Simple !afk !unafk Plugin
    Reply With Quote #3

    Quote:
    Originally Posted by L4D2Noob View Post
    Why shouldn't the player just be the spectator?
    Game doesn't allow you to join the spectators team unless you are dead. So in this case I personally wouldn't kill myself everytime I need to go AFK.
    The SoupSpy 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:26.


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