1st one :
public CheckSpinHack_Post(id)
{
if(is_user_alive(id))
{
static Float:fAngles[3]
pev(id, pev_angles, fAngles)
fTotalAngle[id] += vector_distance(fLastAngles[id], fAngles)
CopyVector(fAngles, fLastAngles[id])
static Button
Button = pev(id, pev_button)
if((Button & IN_LEFT) || (Button & IN_RIGHT))
{
g_dSpinWarnings[id] = 0
//server_cmd("say pressing left/right")
}
}
}
Another one I can't post

as it uses some slowhacking . But its a very simple developer 0 function

.