Total time online?
#8

For windows user

pawn Код:
//OnPlayerConnect
SetPVarInt(playerid, "CTime", GetTickCount());
pawn Код:
//OnPlayerDisconnect - save to file using dini
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name);
dini_SetInt("Time.txt", name, (
  dini_GetInt("Time.txt", name) +
    floatround( ( ( GetTickCount() - GetPVarInt(playerid, "CTime") ) / 1000.0 ), floatround_floor)
  )
);
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)