Skip to content

Commit

Permalink
AFKKick Test See #1
Browse files Browse the repository at this point in the history
Fixed small issue
  • Loading branch information
MK99MA committed Sep 6, 2019
1 parent 86cc717 commit cced2f8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified addons/sourcemod/plugins/soccer_mod.smx
Binary file not shown.
4 changes: 2 additions & 2 deletions addons/sourcemod/scripting/soccer_mod/client_commands.sp
Original file line number Diff line number Diff line change
Expand Up @@ -416,9 +416,9 @@ public void AFKKickOnClientPutInServer(int client)

if(pwchange == true && passwordlock == 1)
{
CPrintToChat(client, "{%s}[%s] AFK Kick enabled.", prefixcolor, prefix);
if(IsValidClient(client, true))
{
CPrintToChat(client, "{%s}[%s] AFK Kick enabled.", prefixcolor, prefix);
GetClientAbsOrigin(client, afk_Position[client]);
GetClientEyeAngles(client, afk_Angles[client]);

Expand Down Expand Up @@ -494,7 +494,7 @@ public Action Timer_AFKCheck(Handle Timer)

afk_Matches[i] = iMatches;

if(iMatches >= 3)
if(iMatches >= 2)
{
PopupAFKMenu(i, afk_menutime);
}
Expand Down

0 comments on commit cced2f8

Please sign in to comment.