26.09.2011, 17:02
Код:
forward TimeOnServer(playerid); public TimeOnServer(playerid) { PlayerInfo[playerid][Sec] ++; if(PlayerInfo[playerid][Sec]>=60) { PlayerInfo[playerid][Min]++; PlayerInfo[playerid][Sec]=0; } if(PlayerInfo[playerid][Min]>=60) { PlayerInfo[playerid][Min]=0; PlayerInfo[playerid][Hour]++; new LevScore; LevScore = PlayerInfo[playerid][Hour]; SetPlayerScore(playerid, LevScore); } }