Ich habe es nicht benutzt da ich das alles dann selber erstellt habe, wie jetzt.
Nur wie baue ich jetzt die Funktionen dafür ein? Das sich das alles updatet und nicht nur auf 100 bleibt.
#include <a_samp>
new PlayerText:Textdraw0[MAX_PLAYERS];
new PlayerText:Textdraw1[MAX_PLAYERS];
public OnPlayerConnect(playerid)
{
Textdraw0[playerid] = CreatePlayerTextDraw(playerid,568.000000, 43.000000, "100");
PlayerTextDrawBackgroundColor(playerid,Textdraw0[playerid], 255);
PlayerTextDrawFont(playerid,Textdraw0[playerid], 2);
PlayerTextDrawLetterSize(playerid,Textdraw0[playerid], 0.239999, 1.000000);
PlayerTextDrawColor(playerid,Textdraw0[playerid], 16711935);
PlayerTextDrawSetOutline(playerid,Textdraw0[playerid], 0);
PlayerTextDrawSetProportional(playerid,Textdraw0[playerid], 1);
PlayerTextDrawSetShadow(playerid,Textdraw0[playerid], 1);
PlayerTextDrawSetSelectable(playerid,Textdraw0[playerid], 0);
Textdraw1[playerid] = CreatePlayerTextDraw(playerid,568.000000, 65.000000, "100");
PlayerTextDrawBackgroundColor(playerid,Textdraw1[playerid], 255);
PlayerTextDrawFont(playerid,Textdraw1[playerid], 2);
PlayerTextDrawLetterSize(playerid,Textdraw1[playerid], 0.239999, 1.000000);
PlayerTextDrawColor(playerid,Textdraw1[playerid], 16711935);
PlayerTextDrawSetOutline(playerid,Textdraw1[playerid], 0);
PlayerTextDrawSetProportional(playerid,Textdraw1[playerid], 1);
PlayerTextDrawSetShadow(playerid,Textdraw1[playerid], 1);
PlayerTextDrawSetSelectable(playerid,Textdraw1[playerid], 0);
return 1;
}
public OnPlayerDisconnect(playerid)
{
PlayerTextDrawDestroy(playerid, Textdraw0[playerid]);
PlayerTextDrawDestroy(playerid, Textdraw1[playerid]);
return 1;
}
public OnPlayerSpawn(playerid)
{
PlayerTextDrawShow(playerid, Textdraw0[playerid]);
PlayerTextDrawShow(playerid, Textdraw1[playerid]);
return 1;
}