So, this would moniter when they are
not moving 'camping' this isn't going to be the full code though. ;)
Code:
#include <amxmodx>
#include <fakemeta>
#define PLUGIN "Punish The Camper"
#define VERSION "1.0"
#define AUTHOR "FormulaZero"
new Float:lastMove[33];
public plugin_init()
{
register_forward(FM_PlayerPreThink,"fw_playerprethink",1)
}
public fw_playerprethink(id)
{
static Float:velocity[3]
pev(id,pev_velocity,velocity)
new Float:time = get_gametime()
if(velocity[1] || velocity[0] || velocity[2] || !(pev(id,pev_frags) & FL_OFFGROUND))
lastMove[id] = time
if(time-lastMove[id] >= 10.7)
{
client_print(id,print_chat,"[*]You havn't moved for 11 seconds, you will now be punished")
lastMove[id] = time
}
return FMRES_IGNORED
}