22.12.2013, 09:57
Код:
new Text:TextDrawMoney;
public OnGamemodeInIt()
{
TextDrawMoney = TextDrawCreate(414.000000, 400.000000, "~b~Money:~w~ ");
TextDrawBackgroundColor(TextDrawMoney, 255);
TextDrawFont(TextDrawMoney, 3);
TextDrawLetterSize(TextDrawMoney, 0.70, 0.80);
TextDrawSetOutline(TextDrawMoney, 1);
TextDrawSetProportional(TextDrawMoney, 1);
TextDrawUseBox(TextDrawMoney, 1);
return 1;
}
public OnGameModeExit()
{
TextDrawHideForAll(TextDrawMoney);
TextDrawDestroy(TextDrawMoney);
return 1;
}
public OnPlayerSpawn(playerid)
{
TextDrawShowForPlayer(playerid, TextDrawMoney);
return 1;
}
public OnPlayerUpdate(playerid)
{
format(string, sizeof string, "~B~Money:~w~ %d", GetPlayerMoney(playerid));
TextDrawSetString(TextDrawMoney, string);
return 1;
}

