30.10.2010, 23:48
Quote:
get the player position, and check it every 5 min to see if its the same.
if so, then kick. |
I have an idea in my head..
pawn Код:
new Float:X, Float:Y, Float:Z
GetPlayerPos(playerid,X,Y,Z);
new speed = GetPlayerVelocity(playerid,X,Y,Z);
if (speed < 1) return SetTimer("checkidle",5mins,0);
if (speed > 0) return KillTimer("checkidle");
pawn Код:
public checkidle(playerid)
{
if (speed < 1) return kick(playerid);
}
{