pawn Код:
new updateTimer[ MAX_PLAYERS ] ;
forward UpdatePlayer(playerid);
public OnPlayerConnect(playerid)
{
updateTimer[playerid] = SetTimerEx("UpdatePlayer", 1000, true, "i", playerid);
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
KillTimer(updateTimer[playerid]);
return 1;
}
public UpdatePlayer(playerid)
{
new string[24];
format(string, sizeof string, "Score: %d", GetPlayerScore(playerid));
TextDrawSetString(ScoreText[playerid], string);
return 1;
}