Afk Slayer 30 sec
The AFK Slayer plug-in is a plug-in that automatically “slides” to players with AFK. Automatically kills players with more than 30 seconds of Afk stay.

.

.
you can change the time to slay the afk change this
#define TIME 30.0
.
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fakemeta>
#define TIME 30.0
new Float:player_origin[33][3];
public plugin_init()
{
register_plugin( "Simple Afk Slayer 30", "3.0", "Gaming-Zone" );
RegisterHam(Ham_Spawn, "player", "e_Spawn", 1);
}
public e_Spawn(id)
{
remove_task(id)
if(is_user_alive(id))
{
set_task(0.8, "get_spawn", id);
}
return HAM_IGNORED;
}
public get_spawn(id)
{
pev(id, pev_origin, player_origin[id]);
set_task(TIME, "check_afk", id);
}
public check_afk(id)
{
if(is_user_alive(id))
{
if(same_origin(id))
{
user_kill(id);
new name[33];
get_user_name(id, name, 32);
client_print(0, print_chat, "%s was killed for AFK.", name); // fixed error here too
}
}
}
public same_origin(id)
{
new Float:origin[3];
pev(id, pev_origin, origin);
for(new i = 0; i < 3; i++)
if(origin[i] != player_origin[id][i])
return 0;
return 1;
}
.
Related Posts:Auto Restart in Round or Seconds
TOP PLUGINSConnect Player Info
TOP PLUGINSAMXX Simple Swear Filter
TOP PLUGINSPlugin StatsX GUI 1.8 (player statistics) cs 1.6 - ENGLISH
TOP PLUGINSUltimate Sound Kill ,Headshot , Knife
PUBLIC PLUGINSDamager Hits for Counter-Strike 1.6
TOP PLUGINSPlugin admin skins [admin models] for cs 1.6
TOP PLUGINSAMXX Frag Counter
TOP PLUGINSAmxx Autoresponder / Advertiser
TOP PLUGINSDescriptive 'Fire in the hole!' (+colors)
TOP PLUGINSSpectator List 1.2a plugin for CS 1.6
TOP PLUGINSAMXX AFK Manager - Afk to Spec
TOP PLUGINS
Auto Restart in Round or Seconds
TOP PLUGINS
Connect Player Info
TOP PLUGINS
AMXX Simple Swear Filter
TOP PLUGINS
Plugin StatsX GUI 1.8 (player statistics) cs 1.6 - ENGLISH
TOP PLUGINS
Ultimate Sound Kill ,Headshot , Knife
PUBLIC PLUGINS
Damager Hits for Counter-Strike 1.6
TOP PLUGINS
Plugin admin skins [admin models] for cs 1.6
TOP PLUGINS
AMXX Frag Counter
TOP PLUGINS
Amxx Autoresponder / Advertiser
TOP PLUGINS
Descriptive 'Fire in the hole!' (+colors)
TOP PLUGINS
Spectator List 1.2a plugin for CS 1.6
TOP PLUGINS
AMXX AFK Manager - Afk to Spec
TOP PLUGINS










