14.03.2014, 19:12
(
Последний раз редактировалось Schocc; 17.03.2014 в 14:53.
)
REMOVED
SetPVarInt(playerid, "LoginTime", gettime());
public OnPlayerDisconnect(playerid, reason)
{
new how_long_he_played = (gettime()-GetPVarInt(playerid, "LoginTime"))/60;
// This will return the amount of time in minutes the player was online.
printf("Player was online for %d minutes", how_long_he_played);
}