Converting seconds into Days/Hours/Minutes
#2

unixtime forewer
pawn Код:
new globaltime[MAX_PLAYERS];

OnPlayerConnect(...)
{
SetPVarInt(playerid, "ENTERTIME", gettime());
...
}

OnPLayerDisconnect(...)
{
globaltime[playerid] += gettime() - GetPVarInt(playerid, "ENTERTIME");
...
}
this is only an idea on itself is implemented by.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)