Raised This Month: $ Target: $400
 0% 

[CS:GO] Simple CSGO AntiAFK


Post New Thread Reply   
 
Thread Tools Display Modes
Puppetmaster
Senior Member
Join Date: Jun 2015
Location: Probably at a computer.
Old 06-20-2015 , 22:14   Re: [CS:GO] Simple CSGO AntiAFK
Reply With Quote #11

Quote:
Originally Posted by Fireflasch7 View Post
hey nice Plugin can you make that at 10 secondy a message to the player will send and there stands "hey it seems your afk move to not be moved to spectator"?Thanks!
Yeah sure, Ill add that sometime today.
Puppetmaster is offline
Puppetmaster
Senior Member
Join Date: Jun 2015
Location: Probably at a computer.
Old 06-20-2015 , 23:10   Re: [CS:GO] Simple CSGO AntiAFK
Reply With Quote #12

Quote:
Originally Posted by Fireflasch7 View Post
hey nice Plugin can you make that at 10 secondy a message to the player will send and there stands "hey it seems your afk move to not be moved to spectator"?Thanks!
Added to version 0.0.4, its now live and available for download.
Puppetmaster is offline
svN
Junior Member
Join Date: Dec 2010
Old 06-21-2015 , 00:23   Re: [CS:GO] Simple CSGO AntiAFK
Reply With Quote #13

doesnt work on my server.. cant change any cvar or anything else..

and its not unter meta list

Last edited by svN; 06-21-2015 at 00:30.
svN is offline
Puppetmaster
Senior Member
Join Date: Jun 2015
Location: Probably at a computer.
Old 06-21-2015 , 01:07   Re: [CS:GO] Simple CSGO AntiAFK
Reply With Quote #14

Quote:
Originally Posted by svN View Post
doesnt work on my server.. cant change any cvar or anything else..

and its not unter meta list
In 0.0.5 Ive added new prints to the server console, at the start of then round it will say "New Round, Getting players positions for AFK checking" and will also tell you in the console when a player is kicked. Did you put the .smx in the plugins folder? I will need more details if I am to help you find a solution to your issue
Puppetmaster is offline
irepz
Senior Member
Join Date: Mar 2013
Location: France
Old 06-22-2015 , 12:40   Re: [CS:GO] Simple CSGO AntiAFK
Reply With Quote #15

Found a bug, sometimes it kicks players before they join a team
__________________
irepz is offline
Puppetmaster
Senior Member
Join Date: Jun 2015
Location: Probably at a computer.
Old 06-22-2015 , 18:43   Re: [CS:GO] Simple CSGO AntiAFK
Reply With Quote #16

Quote:
Originally Posted by irepz View Post
Found a bug, sometimes it kicks players before they join a team
As you can see in the source code it makes the following checks:
Code:
IsPlayerAlive(i) && GetClientTeam(i) > 1
These checks see if the player is both alive and in a team which is greater than 1 (ie 2 or 3)
(0 = teamless | 1 = spectators | 2 = terrorists | 3 = CT | according to the sourcemod API reference)

This means that it normally only kicks when a player has not moved for 20 seconds, is alive and is on either CT or T side.

I have done extensive testing to far it and it works on servers without a ton of other plugins. If you are running a server that has a plugin that for instance holds players in a team for spectator it could well be doing what you have described.
Puppetmaster is offline
svN
Junior Member
Join Date: Dec 2010
Old 06-24-2015 , 10:43   Re: [CS:GO] Simple CSGO AntiAFK
Reply With Quote #17

Quote:
Originally Posted by Puppetmaster View Post
In 0.0.5 Ive added new prints to the server console, at the start of then round it will say "New Round, Getting players positions for AFK checking" and will also tell you in the console when a player is kicked. Did you put the .smx in the plugins folder? I will need more details if I am to help you find a solution to your issue
i just installed on a deathmatch server - maybe its not for this mod?

i cant find any lines in console.. :/
svN is offline
TheWho
AlliedModders Donor
Join Date: Jul 2012
Old 06-24-2015 , 20:19   Re: [CS:GO] Simple CSGO AntiAFK
Reply With Quote #18

Why 20seconds? Isn't it way to long? I would say freezetime+5, or work with positioning and OnUserRunCmd
TheWho is offline
Puppetmaster
Senior Member
Join Date: Jun 2015
Location: Probably at a computer.
Old 06-25-2015 , 19:16   Re: [CS:GO] Simple CSGO AntiAFK
Reply With Quote #19

Quote:
Originally Posted by TheWho View Post
Why 20seconds? Isn't it way to long? I would say freezetime+5, or work with positioning and OnUserRunCmd
Are you can see it already checks positioning, it checks to see exactly where they are looking:
Code:
GetClientEyePosition(i, positions[i]);
If you want to change the time all you need to do is change the CreateTimer and the conditional statement in the checks:

Code:
CreateTimer(21.0, Timer_AntiAFK);
Code:
if(positionsTemp[i][1] == positions[i][1] && positionsTemp[i][2] == positions[i][2] && GetTime() > times[i]+20 && IsPlayerAlive(i) && GetClientTeam(i) > 1)
Puppetmaster is offline
Puppetmaster
Senior Member
Join Date: Jun 2015
Location: Probably at a computer.
Old 06-25-2015 , 19:18   Re: [CS:GO] Simple CSGO AntiAFK
Reply With Quote #20

Quote:
Originally Posted by svN View Post
i just installed on a deathmatch server - maybe its not for this mod?

i cant find any lines in console.. :/
It should be as easy as copying it into the folder and running the command to load it:
Code:
sm plugins load simplecsgoantiafk
Which version of sourcemod and metamod are you running? I have only tested it on the latest versions.
Puppetmaster is offline
Reply



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 00:03.


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