Hey erneut^^
In den letzten Tagen hab ichs echt mit den TextDraw's
dieses mal wird meine Gangwar TextDraw die den aktuellen Stand beinhaltet einfach nicht angezeigt.
Alle anderen TD's die ich habe funktionieren nur diese nicht
Hier mal der Code
Hoffe jmd kann helfen...
ist bestimmer wieder was ganz banales
TextDraw "definition"
TextDraw Erstellung unter OnGameModeInit
Code
T1 = TextDrawCreate(234 ,35 , "--------------------");
TextDrawFont(T1 , 1);
TextDrawLetterSize(T1 , 0.6, 4.2);
TextDrawColor(T1 , 0x050000FF);
TextDrawSetOutline(T1 , false);
TextDrawSetProportional(T1 , true);
TextDrawSetShadow(T1 , 1);
Unter OnPlayer Connect
Code
TextDrawShowForAll(Text:T1);
new Stand[10];
format(Stand,sizeof(Stand),"Team 1 %i : %i Team 2",T1Count,T2Count);
TextDrawSetString(Text:T1,Stand);
TextDrawShowForAll(Text:T1);
OnPlayerDeathAbfrage
Code
if(GetPlayerTeam(playerid) == 1 && GetPlayerTeam(killerid) == 2 && IsPlayerInArea(playerid,1017.6841,1383.3768,1177.0291,1702.6935)
&& IsPlayerInArea(killerid,1017.6841,1383.3768,1177.0291,1702.6935))
{
TextDrawShowForAll(Text:T1);
new stand[10];
T2Count ++;
format(stand,sizeof(stand),"Team 1 %i : %i Team 2",T1Count,T2Count);
TextDrawSetString(Text:T1,stand);
TextDrawShowForAll(Text:T1);
if(T2Count >= 3 && T1Count < 3)
{
SCMTA(lila,"Team 2 hat gewonnen");
T2Count = 0;
T1Count = 0;
format(stand,sizeof(stand),"Team 1 %i : %i Team 2",T1Count,T2Count);
TextDrawShowForAll(Text:T1);
TextDrawSetString(Text:T1,stand);
TextDrawShowForAll(Text:T1);
}
}
else if(GetPlayerTeam(playerid) == 2 && GetPlayerTeam(killerid) == 1 && IsPlayerInArea(playerid,1017.6841,1383.3768,1177.0291,1702.6935)
&& IsPlayerInArea(killerid,1017.6841,1383.3768,1177.0291,1702.6935))
{
TextDrawShowForAll(Text:T1);
new stand2[10];
T1Count ++;
format(stand2,sizeof(stand2),"Team 1 %i : Team 2 %i",T1Count,T2Count);
TextDrawSetString(Text:T1,stand2);
TextDrawShowForAll(Text:T1);
if(T1Count >= 3 && T2Count < 3)
{
SCMTA(lila,"Team 1 hat gewonnen");
T2Count = 0;
T1Count = 0;
format(stand2,sizeof(stand2),"Team 1 %i : %i Team 2",T1Count,T2Count);
TextDrawShowForAll(Text:T1);
TextDrawSetString(Text:T1,stand2);
TextDrawShowForAll(Text:T1);
}
}
Alles anzeigen