16.11.2016, 20:29
but here is working ... and is the same script
i get that message when
but over there isn't working on payday ... why?
Код 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;
}
Код HTML:
if( AFKMins[i] >= AFKTime )