Hallo habe ein Textdraw mit string gemacht, wird aber nicht angeziegt.
new PlayerText:Bombentext[MAX_PLAYERS];
Bei OnPlayerConnect
print("OnPlayerConnect - Debug 47");
Bombentext[playerid] = CreatePlayerTextDraw(playerid,18.000000, 123.000000, "256 Sekunden");
PlayerTextDrawBackgroundColor(playerid,Bombentext[playerid], 255);
PlayerTextDrawFont(playerid,Bombentext[playerid], 1);
PlayerTextDrawLetterSize(playerid,Bombentext[playerid], 0.500000, 1.300000);
PlayerTextDrawColor(playerid,Bombentext[playerid], -1);
PlayerTextDrawSetOutline(playerid,Bombentext[playerid], 0);
PlayerTextDrawSetProportional(playerid,Bombentext[playerid], 1);
PlayerTextDrawSetShadow(playerid,Bombentext[playerid], 1);
PlayerTextDrawUseBox(playerid,Bombentext[playerid], 1);
PlayerTextDrawBoxColor(playerid,Bombentext[playerid], 200);
PlayerTextDrawTextSize(playerid,Bombentext[playerid], 145.000000, 0.000000);
OnPlayerDisconnect
PlayerTextDrawDestroy(playerid,Bombentext[playerid]);
OnPlayerSpawn
PlayerTextDrawHide(playerid,Bombentext[playerid]);
Nun der Public
forward Schwarzpulvertimer();
public Schwarzpulvertimer()
{
if(willrobben>1)
{
if(IsPlayerInRangeOfPoint(robber,5,spoint)&&tod[robber]==0)
{
willrobben-=1;
new string[128];
format(string,sizeof(string),"%d Sekunden",willrobben);
PlayerTextDrawShow(robber,Bombentext[robber]);
PlayerTextDrawSetString(robber,Bombentext[robber],string);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)&&IsPlayerInFrak(i,5))
{
PlayerTextDrawShow(i,Bombentext[i]);
PlayerTextDrawSetString(i,Bombentext[i],string);
}
}
}
else
{
willrobben=0;
GameTextForPlayer(robber,"~r~Klauen fehlgeschlagen!",2000,3);
PlayerTextDrawHide(robber,Bombentext[robber]);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)&&IsPlayerInFrak(i,5))
{
PlayerTextDrawHide(i,Bombentext[i]);
}
}
TogglePlayerControllable(robber,1);
}
}
if(willrobben==1)
{
new betrag = 5 + random(11);
new string[128];
SpielerInfo[robber][PPulver]+=betrag;
format(string,sizeof(string),"~g~Du hast %dKg Schwarzpulver geklaut",betrag);
GameTextForPlayer(robber,string,2500,3);
willrobben=0;
PlayerTextDrawHide(robber,Bombentext[robber]);
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)&&IsPlayerInFrak(i,5))
{
PlayerTextDrawHide(i,Bombentext[i]);
}
}
TogglePlayerControllable(robber,1);
}
return 1;
}
So Bitte du könntest mir auch per Tv helfen.