15.10.2014, 12:00
pawn Код:
new PlayerText:Speedo[MAX_PLAYERS];
public OnPlayerConnect(playerid) {
Speedo[playerid] = CreatePlayerTextDraw(playerid, 608.5, 198.0, " ");
PlayerTextDrawAlignment(playerid, Speedo[playerid], 3);
PlayerTextDrawBackgroundColor(playerid, Speedo[playerid], 255);
PlayerTextDrawFont(playerid, Speedo[playerid], 6);
PlayerTextDrawLetterSize(playerid, Speedo[playerid], 0.56, 2.2);
PlayerTextDrawSetOutline(playerid, Speedo[playerid], 2);
PlayerTextDrawSetProportional(playerid, Speedo[playerid], 1);
}
public OnPlayerSpawn(playerid) {
PlayerTextDrawShow(playerid,Speedo[playerid]);
PlayerTextDrawSetString(playerid, Speedo[playerid], "100 ~r~MPK/H");
// also not show up by swap them.
return 1;
}