18.07.2015, 13:52
Em ongamemonit:
Abaixo:
Topo:
Onplayerspawn:
o code nгo esta funcionando...Oq pode ser?
PHP код:
SetTimer("AtualizarScore", 1000, true);
TextDraw = CreatePlayerTextDraw(playerid, 383.000000, 2.000000, "");
PlayerTextDrawAlignment(playerid, TextDraw, 2);
PlayerTextDrawBackgroundColor(playerid, TextDraw, 255);
PlayerTextDrawFont(playerid, TextDraw, 2);
PlayerTextDrawLetterSize(playerid, TextDraw, 0.210000, 1.299999);
PlayerTextDrawColor(playerid, TextDraw, -1);
PlayerTextDrawSetOutline(playerid, TextDraw, 1);
PlayerTextDrawSetProportional(playerid, TextDraw, 1);
PlayerTextDrawSetSelectable(playerid, TextDraw, 0);
PHP код:
forward AtualizarScore();
public AtualizarScore()
{
for(new playerid; playerid < GetMaxPlayers(); playerid++) {
if(!IsPlayerConnected(playerid)) continue;
new STR[200];
format(STR, 200, "~w~scores: ~g~%d ~w~- ping: ~b~%d ~w~- fps: ~y~%d ~w~- %d/%d", GetPlayerScore(playerid), GetPlayerPing(playerid), pFPS[playerid], ContarJogadores(), GetMaxPlayers());
PlayerTextDrawSetString(playerid, TextDraw, STR);
}
return true;
}
PHP код:
new PlayerText:TextDraw;
PHP код:
PlayerTextDrawShow(playerid, TextDraw);