Hallo Leute,
Ich wollte Paar Infos immer parat haben (im Spiel) und das als Textdraw wieder geben jedoch werden mir die Textdraws nicht angezeigt.
Ich probiere seit kurzem die Textdraws auch per Befehl ein und aus zu Blenden was leider nicht klappt.
Hier der code:
new Text:StatsDraw[MAX_PLAYERS][5];
if(StatsDraw[playerid] == 0)
{
StatsDraw[playerid][0] = TextDrawCreate(525.000000, 125.000000, "Level:");
TextDrawBackgroundColor(StatsDraw[playerid][0], 255);
TextDrawFont(StatsDraw[playerid][0], 1);
TextDrawLetterSize(StatsDraw[playerid][0], 0.400000, 0.949999);
TextDrawColor(StatsDraw[playerid][0], 8913151);
TextDrawSetOutline(StatsDraw[playerid][0], 0);
TextDrawSetProportional(StatsDraw[playerid][0], 1);
TextDrawSetShadow(StatsDraw[playerid][0], 1);
TextDrawUseBox(StatsDraw[playerid][0], 1);
TextDrawBoxColor(StatsDraw[playerid][0], 101);
TextDrawTextSize(StatsDraw[playerid][0], 644.000000, 0.000000);
StatsDraw[playerid][1] = TextDrawCreate(525.000000, 136.000000, "Bank:");
TextDrawBackgroundColor(StatsDraw[playerid][1], 255);
TextDrawFont(StatsDraw[playerid][1], 1);
TextDrawLetterSize(StatsDraw[playerid][1], 0.400000, 0.949999);
TextDrawColor(StatsDraw[playerid][1], 8913151);
TextDrawSetOutline(StatsDraw[playerid][1], 0);
TextDrawSetProportional(StatsDraw[playerid][1], 1);
TextDrawSetShadow(StatsDraw[playerid][1], 1);
TextDrawUseBox(StatsDraw[playerid][1], 1);
TextDrawBoxColor(StatsDraw[playerid][1], 101);
TextDrawTextSize(StatsDraw[playerid][1], 642.000000, 0.000000);
StatsDraw[playerid][2] = TextDrawCreate(525.000000, 147.000000, "Handynr.:");
TextDrawBackgroundColor(StatsDraw[playerid][2], 255);
TextDrawFont(StatsDraw[playerid][2], 1);
TextDrawLetterSize(StatsDraw[playerid][2], 0.400000, 0.949999);
TextDrawColor(StatsDraw[playerid][2], 8913151);
TextDrawSetOutline(StatsDraw[playerid][2], 0);
TextDrawSetProportional(StatsDraw[playerid][2], 1);
TextDrawSetShadow(StatsDraw[playerid][2], 1);
TextDrawUseBox(StatsDraw[playerid][2], 1);
TextDrawBoxColor(StatsDraw[playerid][2], 101);
TextDrawTextSize(StatsDraw[playerid][2], 640.000000, 0.000000);
StatsDraw[playerid][3] = TextDrawCreate(525.000000, 158.000000, "Payday:");
TextDrawBackgroundColor(StatsDraw[playerid][3], 255);
TextDrawFont(StatsDraw[playerid][3], 1);
TextDrawLetterSize(StatsDraw[playerid][3], 0.400000, 0.949999);
TextDrawColor(StatsDraw[playerid][3], 8913151);
TextDrawSetOutline(StatsDraw[playerid][3], 0);
TextDrawSetProportional(StatsDraw[playerid][3], 1);
TextDrawSetShadow(StatsDraw[playerid][3], 1);
TextDrawUseBox(StatsDraw[playerid][3], 1);
TextDrawBoxColor(StatsDraw[playerid][3], 101);
TextDrawTextSize(StatsDraw[playerid][3], 640.000000, 0.000000);
StatsDraw[playerid][4]= TextDrawCreate(525.000000, 169.000000, "Mit /showstats an oder aus schalten");
TextDrawBackgroundColor(StatsDraw[playerid][4], 255);
TextDrawFont(StatsDraw[playerid][4], 1);
TextDrawLetterSize(StatsDraw[playerid][4], 0.160000, 1.200000);
TextDrawColor(StatsDraw[playerid][4], 8913151);
TextDrawSetOutline(StatsDraw[playerid][4], 0);
TextDrawSetProportional(StatsDraw[playerid][4], 1);
TextDrawSetShadow(StatsDraw[playerid][4], 1);
TextDrawUseBox(StatsDraw[playerid][4], 1);
TextDrawBoxColor(StatsDraw[playerid][4], 101);
TextDrawTextSize(StatsDraw[playerid][4], 640.000000, 0.000000);
}
dcmd_showpda(playerid,params[])
{
#pragma unused params
if(PlayerInfo[playerid][PDA]== 1)
{
{
for(new i=0;i<5;i++)
TextDrawHideForPlayer(playerid, StatsDraw[playerid][i]);
return 1;
}
else
{
for(new i=0;i<5;i++)
TextDrawShowForPlayer(playerid,StatsDraw[playerid][i]);
return 1;
}
}
return 1;
}
MfG Flo