check if player is idle..
#4

Quote:
Originally Posted by Hal
Посмотреть сообщение
get the player position, and check it every 5 min to see if its the same.
if so, then kick.
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
{
Reply


Messages In This Thread
check if player is idle.. - by admantis - 30.10.2010, 23:36
Re: check if player is idle.. - by Hal - 30.10.2010, 23:43
Re: check if player is idle.. - by The_Moddler - 30.10.2010, 23:46
Re : Re: check if player is idle.. - by admantis - 30.10.2010, 23:48
Re : Re: check if player is idle.. - by admantis - 30.10.2010, 23:51
Re: Re : Re: check if player is idle.. - by Hal - 30.10.2010, 23:54
Re : Re: Re : Re: check if player is idle.. - by admantis - 30.10.2010, 23:55
Re: Re : Re: check if player is idle.. - by The_Moddler - 31.10.2010, 01:09

Forum Jump:


Users browsing this thread: 1 Guest(s)