AFK Detection
#5

PHP код:
enum iFloat
{
    
Float:PosX,
    
Float:PosY,
    
Float:PosZ,
    
Float:Angle,
    
Float:Healthbar,
    
Float:Armourbar,

You can aswell add a new variable such as
PHP код:
new CheckPlayerAFK[MAX_PLAYERS];
new 
UpdateInfo[MAX_PLAYERS][iFloat];
new 
InactivePlayer[MAX_PLAYERS]; 
PHP код:
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;

Note, you will need stocks.


Edit: there's many more stuff you can use, I just gave ya an example
Reply


Messages In This Thread
AFK Detection - by Luis- - 18.09.2011, 21:38
Re: AFK Detection - by MadSkillz - 18.09.2011, 21:39
Re: AFK Detection - by =WoR=G4M3Ov3r - 18.09.2011, 21:42
Re: AFK Detection - by Luis- - 18.09.2011, 21:49
Re: AFK Detection - by =WoR=G4M3Ov3r - 18.09.2011, 22:03

Forum Jump:


Users browsing this thread: 1 Guest(s)