Total time online?
#7

This is how I did it:

On the top-

pawn Код:
new TimerOwner[MAX_PLAYERS];
forward TimeOnlineCount(playerid);
public OnPlayerDisconnect(playerid, reason)

pawn Код:
KillTimer(TimerOwner[playerid]);
public OnPlayerSpawn(playerid)

pawn Код:
//your code.
TimerOwner[playerid] = SetTimerEx("TimeOnlineCount", 60000, 1, "i", playerid); //I use minutes in this.
Anywhere-
pawn Код:
public TimeOnlineCount(playerid)
{
    File[playerid][TimeOnline]++; //Just replace this to whatever variable you use. Also, if you use an Admin System, add the variable "TimeOnline" or rename it, if you wish.
    return 1;
}
Reply


Messages In This Thread
Total time online? - by DiddyBop - 08.08.2010, 23:05
Re: Total time online? - by Conroy - 08.08.2010, 23:09
Re: Total time online? - by DiddyBop - 08.08.2010, 23:15
Re: Total time online? - by Conroy - 08.08.2010, 23:20
Re: Total time online? - by DiddyBop - 08.08.2010, 23:27
Re: Total time online? - by Conroy - 09.08.2010, 00:24
Re: Total time online? - by (.Aztec); - 09.08.2010, 00:36
Re: Total time online? - by Nero_3D - 09.08.2010, 01:24

Forum Jump:


Users browsing this thread: 1 Guest(s)