12.04.2012, 16:25
pawn Код:
public OnPlayerConnect(playerid)
{
FPS[playerid] = TextDrawCreate(577.000000, 9.000000, "FPS: Carregando");//Coordenadas X, Y.
TextDrawBackgroundColor(FPS[playerid], 255);
TextDrawFont(FPS[playerid], 1);
TextDrawLetterSize(FPS[playerid], 0.209999, 1.400000);
TextDrawColor(FPS[playerid], -1);//Cor Texto - 0x000000FF(Preto), 0xFF0000FF(Vermelho), 0x00FF00FF(Verde), 0x0000FFFF(Azul), 0xFFFFFFFF(Branco).
TextDrawSetOutline(FPS[playerid], 0);
TextDrawSetProportional(FPS[playerid], 1);
TextDrawSetShadow(FPS[playerid], 1);
TextDrawShowForPlayer(playerid, FPS[playerid]);
TimerFPS[playerid] = SetTimerEx("AtualizarFPS", 1000, true, "i", playerid);
return 1;
}