18.09.2011, 21:38
Hello, I am planning on making an AFK detector for my server but I have no idea how I would start it off, if someone wouldn't mind telling me how to it'd be much appreciated.
Thanks!
Thanks!
enum iFloat
{
Float:PosX,
Float:PosY,
Float:PosZ,
Float:Angle,
Float:Healthbar,
Float:Armourbar,
}
new CheckPlayerAFK[MAX_PLAYERS];
new UpdateInfo[MAX_PLAYERS][iFloat];
new InactivePlayer[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
UpdateInfo[playerid][PosX] = 0;
UpdateInfo[playerid][PosY] = 0;
UpdateInfo[playerid][PosZ] = 0;
UpdateInfo[playerid][Angle] = 0;
UpdateInfo[playerid][Healthbar] = 0;
UpdateInfo[playerid][Armourbar] = 0;
InactivePlayer[playerid] = 0;
CheckPlayerAFK[playerid] = 0;
return 1;
}