02.10.2011, 08:39
pawn Код:
//GM top
new Servt;
//OnGameModeInit
for(new i=0; i<MAX_PLAYERS; i++)
{
Servt = TextDrawCreate(545, 31, "00:00");
TextDrawColor(Servt, COLOR_WHITE);
}
forward TimeU();
public TimeU()
{
new hr,min,sec,string[10];
gettime(hr,min,sec);
#pragma unused sec
format(string, 10,"%02d:%02d",hr,min);
TextDrawSetString(Servt,string);
}
//onplayerconnect
TextDrawShowForPlayer(playerid, Servt);
//onplayerdisconnect
TextDrawHideForPlayer(playerid, Servt);