04.09.2014, 12:22
Quote:
You should have a look over this topic. And then use this include to retrieve them.
|
pawn Код:
new
gSpentTime[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
//gSpentTime[playerid] = 0;
gSpentTime[playerid] = gettime();
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
gSpentTime[playerid] = gettime() - gSpentTime[playerid];
return 1;
}