afk time
#9

but here is working ... and is the same script

Код HTML:
function IdleKick()
{
    new nr = 0;
	foreach(new i : Player) nr ++;

 	foreach(new i : Player)
	{
		if(IsAfk[i] == 1 && AFK[i] != 1 && PlayerInfo[i][pLevel] > 1 && PlayerInfo[i][pJailed] == 0 && PlayerInfo[i][pAdmin] < 4)
		{
			AFKMins[i]++;
			if( AFKMins[i] >= AFKTime )
   			{
				format(gString, sizeof(gString), "%s a primit kick de la AdmBot, motiv: AFK fara sleep mai mult de %d minute.", GetName(i), AFKTime);
				SendClientMessageToAll(COLOR_LIGHTRED, gString);
				Kick(i);
			}
		}
	}
	return 1;
}
i get that message when
Код HTML:
if( AFKMins[i] >= AFKTime )
but over there isn't working on payday ... why?
Reply


Messages In This Thread
afk time - by StR_MaRy - 16.11.2016, 19:29
Re: afk time - by DTV - 16.11.2016, 19:39
Re: afk time - by StR_MaRy - 16.11.2016, 19:40
Re: afk time - by DTV - 16.11.2016, 19:46
Re: afk time - by StR_MaRy - 16.11.2016, 19:48
Re: afk time - by DTV - 16.11.2016, 20:02
Re: afk time - by StR_MaRy - 16.11.2016, 20:07
Re: afk time - by Konstantinos - 16.11.2016, 20:27
Re: afk time - by StR_MaRy - 16.11.2016, 20:29

Forum Jump:


Users browsing this thread: 1 Guest(s)