24.06.2012, 20:01
This is only box.
On my map is:
Paste code:
EDIT:
Where you use ShowTextDraw must be loop.
Sorry for my bad english.
On my map is:
Paste code:
Код:
new Text:TextDraw[10]; new Float:TextDrawPosition[2]; new Text:TextDrawPlayer[SLOTS][1];
Код:
TextDrawPosition[0] = 560.000000; TextDrawPosition[1] = 260.000000; for(new X,A = 10; X < A; X++) { TextDraw[X] = TextDrawCreate(TextDrawPosition[0],TextDrawPosition[1],"~N~~N~~N~~N~~N~~N~~N~~N~~N~~N~~N~~N~~N~~N~~N~"); TextDrawAlignment(TextDraw[X],2); TextDrawBackgroundColor(TextDraw[X],255); TextDrawFont(TextDraw[X],1); TextDrawLetterSize(TextDraw[X],0.000000,1.000000); TextDrawColor(TextDraw[X],-1); TextDrawSetOutline(TextDraw[X],0); TextDrawSetProportional(TextDraw[X],1); TextDrawSetShadow(TextDraw[X],1); TextDrawUseBox(TextDraw[X],1); TextDrawBoxColor(TextDraw[X],10); TextDrawTextSize(TextDraw[X],0.000000,-130.000000); TextDrawPosition[0] += 1; TextDrawPosition[1] += 1; } for(new I,A = SLOTS; I < A; I++) { TextDrawPlayer[I][0] = TextDrawCreate(564.000000,268.000000," "); TextDrawAlignment(TextDrawPlayer[I][0],2); TextDrawBackgroundColor(TextDrawPlayer[I][0],255); TextDrawFont(TextDrawPlayer[I][0],1); TextDrawLetterSize(TextDrawPlayer[I][0],0.200000,1.000000); TextDrawColor(TextDrawPlayer[I][0],0xBBBBBBBB); TextDrawSetOutline(TextDrawPlayer[I][0],1); TextDrawSetProportional(TextDrawPlayer[I][0],1); TextDrawSetShadow(TextDrawPlayer[I][0],1); }
Where you use ShowTextDraw must be loop.
Код:
for(new X = 0; X < 10; X++) { TextDrawShowForPlayer(playerid,TextDraw[X]); } TextDrawShowForPlayer(playerid,TextDrawPlayer[playerid][0]);