23.09.2014, 19:05
pawn Код:
new PlayerText:ScoreTextdraw[MAX_PLAYERS];
// score textdraw
new str[20];
format(str,sizeof(str),"Score: %d",Player[playerid][pScore]);
PlayerTextDrawSetString(playerid,PlayerText:ScoreTextdraw[playerid], str);
ScoreTextdraw[playerid] = CreatePlayerTextDraw(playerid, 515.199829, 385.280242, "Score ");
PlayerTextDrawLetterSize(playerid, ScoreTextdraw[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, ScoreTextdraw[playerid], 1);
PlayerTextDrawColor(playerid, ScoreTextdraw[playerid], -1);
PlayerTextDrawSetShadow(playerid, ScoreTextdraw[playerid], 0);
PlayerTextDrawSetOutline(playerid, ScoreTextdraw[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, ScoreTextdraw[playerid], 51);
PlayerTextDrawFont(playerid, ScoreTextdraw[playerid], 2);
PlayerTextDrawSetProportional(playerid, ScoreTextdraw[playerid], 1);
//Score Textdraw
public OnPlayerSpawn(playerid)
{
PlayerTextDrawShow(playerid,PlayerText:ScoreTextdraw[playerid]);