15.10.2014, 14:02
pawn Код:
new PlayerText:Speedo[MAX_PLAYERS];
public OnPlayerConnect(playerid) {
Speedo[playerid] = CreatePlayerTextDraw(playerid, 608.5, 198.0, "100 ~r~MPK/H");
PlayerTextDrawAlignment(playerid, Speedo[playerid], 3);
PlayerTextDrawBackgroundColor(playerid, Speedo[playerid], 255);
PlayerTextDrawFont(playerid, Speedo[playerid], 2);
PlayerTextDrawLetterSize(playerid, Speedo[playerid], 0.56, 2.2);
PlayerTextDrawSetOutline(playerid, Speedo[playerid], 2);
PlayerTextDrawSetProportional(playerid, Speedo[playerid], 1);
}
public OnPlayerSpawn(playerid) {
PlayerTextDrawSetString(playerid, Speedo[playerid], "100 ~r~MPK/H");
PlayerTextDrawShow(playerid,Speedo[playerid]);
return 1;
}