Hallo wenn man auf den Desktop geht wird man gefreezed aber nicht mehr entfreezed!
Function IdleKick()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerPos(i, PlayerPos[i][0], PlayerPos[i][1], PlayerPos[i][2]);
if(PlayerPos[i][0] == PlayerPos[i][3] && PlayerPos[i][1] == PlayerPos[i][4] && PlayerPos[i][2] == PlayerPos[i][5])
{
//new string[128];
//format(string,sizeof(string),"*~ [AFK] %s wurde automatisch in den AFK-Modus gebracht! /afklist ",GetName(i));
//SendClientMessageToAll(0xAFAFAFAA,string);
FreezePlayer(i);
}
PlayerPos[i][3] = PlayerPos[i][0];
PlayerPos[i][4] = PlayerPos[i][1];
PlayerPos[i][5] = PlayerPos[i][2];
}
}
}