Quote:
Originally Posted by admantis
Really.. I dont know how to script this, very confusing..
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); }
Would it work? :S
{
|
Possibly, but it would take to much memory, because its always running to check, and starts a timer everytime the player stops moving. using the speed/velocity wouldnt work.