26.05.2015, 14:16
Hello All
I have a code:
How to make that it will update PTScore when playing the server
PTSCORE is playtime score (IN HOURS) (I need it in hours)
NO TIMERS !!!!!
I have a code:
Код:
public OnPlayerConnect(playerid)
{
PlayerInfo[playerid][PTScore] = GetTickCount();
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
PlayerInfo[playerid][PTScore] = GetTickCount() - PlayerInfo[playerid][PTScore];
}
PTSCORE is playtime score (IN HOURS) (I need it in hours)
NO TIMERS !!!!!

