Hallo habe ein Textdraw mit string gemacht, wird aber nicht angeziegt.
PAWN Quelltext
1
new PlayerText:Bombentext[MAX_PLAYERS];
Bei OnPlayerConnect
PAWN Quelltext
1
2
3
4
5
6
7
8
9
10
11
12
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
PAWN Quelltext
1
PlayerTextDrawDestroy(playerid,Bombentext[playerid]);
Bei OnplayerSpawn
PAWN Quelltext
1
PlayerTextDrawHide(playerid,Bombentext[playerid]);
PAWN Quelltext
1
Beim Public
PAWN Quelltext
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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);
PlayerTextDrawSetString(i,Bombentext,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);
}
}
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);
}
}
TogglePlayerControllable(robber,1);
}
return 1;
}
Bitte hilft mir