No login in time = Kick (Help +Rep)
#8

Tylers code won't work correctly it needs to be fixed...

Derp.....

pawn Код:
loginTime[i] --;
if(loginTime[i] == 0 && PlayerInfo[playerid][LoggedIn] == 0)
Do it the man way....

pawn Код:
#define IsLoggedIn(%0) PlayerInfo[%0][LoggedIn]

if(!IsLoggedIn(i))
{
    loginTime[i] --;
    if(loginTime[i] > 0)
    {
        // Count down code here
    }
    else
    {
        // Kick code here
    }
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)