12.06.2010, 02:06
I'm always confused and don't know where to start
on how to get the players total connect time :/
on how to get the players total connect time :/
stock PlayerConnectTime(playerid) {
PlayerTime[playerid][tConnect] = GetTickCount();
}
stock PlayerDisconnectTime(playerid) {
PlayerTime[playerid][tDisconnect] = GetTickCount();
PlayerTime[playerid][tOnline] = floatdiv((PlayerTime[playerid][tDisconnect] - PlayerTime[playerid][tConnect]),6000);
PlayerTime[playerid][tTotal] += PlayerTime[playerid][tOnline];
}