15.03.2010, 14:08
Код:
static n_PlayerOnline[MAX_PLAYERS]; public OnPlayerConnect(playerid) { n_PlayerOnline[playerid] = GetTickCount(); } stock GetOnlineSeconds(playerid) { return GetTickCount() - n_PlayerOnline[playerid] * 1000; }
static n_PlayerOnline[MAX_PLAYERS]; public OnPlayerConnect(playerid) { n_PlayerOnline[playerid] = GetTickCount(); } stock GetOnlineSeconds(playerid) { return GetTickCount() - n_PlayerOnline[playerid] * 1000; }