Du musst mit PlayerTextdraws arbeiten, da du ja für jeden Spieler einen anderen Wert vergibst.
new PlayerText:MoneyPD[MAX_PLAYERS];
forward GeldUpdate();
public GeldUpdate()
{
for(new i; i < MAX_PLAYERS; i++)
{
new money[40];
format(money, 40, "%d Euro", GetPlayerMoney(i));
PlayerTextDrawSetString(i, MoneyPD[i], money);
PlayerTextDrawShow(i, MoneyPD[i]);
}
}
public OnPlayerConnect(playerid)
{
MoneyPD[playerid] = CreatePlayerTextDraw(playerid, 544.889526, 78.151092, "Euro");
PlayerTextDrawLetterSize(playerid, MoneyPD[playerid], 0.449999, 1.600000);
PlayerTextDrawAlignment(playerid, MoneyPD[playerid], 1);
PlayerTextDrawColor(playerid, MoneyPD[playerid], -1);
PlayerTextDrawSetShadow(playerid, MoneyPD[playerid], 0);
PlayerTextDrawSetOutline(playerid, MoneyPD[playerid], 1);
PlayerTextDrawBackgroundColor(playerid, MoneyPD[playerid], 51);
PlayerTextDrawFont(playerid, MoneyPD[playerid], 2);
PlayerTextDrawSetProportional(playerid, MoneyPD[playerid], 1);
PlayerTextDrawShow(playerid, MoneyPD[playerid]);
return 1;
}
public OnGameModeInit()
{
SetTimer("GeldUpdate", 2000, 1);
return 1;
}