Hey ich bin seid einiger Zeit auf der Suche ein Anti Idle System zu machen.
Nur schaffen es immer wieder einige dürch einrasten der Tasten etc das auszu tricksen...
Schreibe mal alles relevante hier rein:
new idletime = 600000; //10 mins
SetTimer("IdleKick", idletime, 1);
public IdleKick()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
Idle_Round[i] += 1;
GetPlayerPos(i, PlayerPos[i][0], PlayerPos[i][1], PlayerPos[i][2]);
GetPlayerFacingAngle(i, PlayerFace[i][0]);
if(PlayerPos[i][0] == PlayerPos[i][3] && PlayerPos[i][1] == PlayerPos[i][4] && PlayerPos[i][2] == PlayerPos[i][5] || PlayerToPoint(5, i, PlayerPos[i][3], PlayerPos[i][4], PlayerPos[i][5]) || PlayerFace[i][0] == PlayerFace[i][1] && GetPlayerState(i) != 2)
{
Idle_Warn[i] += 1;
if(Idle_Warn[i] >= 3)
{
Kick(i);
}
}
PlayerFace[i][1] = PlayerFace[i][0];
PlayerPos[i][3] = PlayerPos[i][0];
PlayerPos[i][4] = PlayerPos[i][1];
PlayerPos[i][5] = PlayerPos[i][2];
if(Idle_Round[i] >= 5)
{
Idle_Round[i] = 0;
Idle_Warn[i] = 0;
}
}
}
}
Ich hoffe jemand hatt eine Idee ich verzfeile die erfarmen sich damit Stunden lang Geld/Level...
mfg Dark Trigardon