- stock CStatsTextDraw()
- {
- StatsTextDraw[0] = TextDrawCreate(569.000000, 151.000000, " "); // Veliki Box
- TextDrawBackgroundColor(StatsTextDraw[0], 255);
- TextDrawFont(StatsTextDraw[0], 1);
- TextDrawLetterSize(StatsTextDraw[0], 0.500000, 1.000000);
- TextDrawColor(StatsTextDraw[0], -1);
- TextDrawSetOutline(StatsTextDraw[0], 0);
- TextDrawSetProportional(StatsTextDraw[0], 1);
- TextDrawSetShadow(StatsTextDraw[0], 1);
- TextDrawUseBox(StatsTextDraw[0], 1);
- TextDrawBoxColor(StatsTextDraw[0], 100);
- TextDrawTextSize(StatsTextDraw[0], 81.000000, 0.000000);
- StatsTextDraw[1] = TextDrawCreate(569.000000, 147.000000, " "); //Gornja crta
- TextDrawBackgroundColor(StatsTextDraw[1], 255);
- TextDrawFont(StatsTextDraw[1], 1);
- TextDrawLetterSize(StatsTextDraw[1], 0.500000, 1.000000);
- TextDrawColor(StatsTextDraw[1], 6469887);
- TextDrawSetOutline(StatsTextDraw[1], 0);
- TextDrawSetProportional(StatsTextDraw[1], 1);
- TextDrawSetShadow(StatsTextDraw[1], 1);
- TextDrawUseBox(StatsTextDraw[1], 1);
- TextDrawBoxColor(StatsTextDraw[1], 6469887);
- TextDrawTextSize(StatsTextDraw[1], 81.000000, 0.000000);
- StatsTextDraw[2] = TextDrawCreate(569.000000, 308.000000, " "); //Donja Crta
- TextDrawBackgroundColor(StatsTextDraw[2], 255);
- TextDrawFont(StatsTextDraw[2], 1);
- TextDrawLetterSize(StatsTextDraw[2], 0.500000, 1.000000);
- TextDrawColor(StatsTextDraw[2], 6469887);
- TextDrawSetOutline(StatsTextDraw[2], 0);
- TextDrawSetProportional(StatsTextDraw[2], 1);
- TextDrawSetShadow(StatsTextDraw[2], 1);
- TextDrawUseBox(StatsTextDraw[2], 1);
- TextDrawBoxColor(StatsTextDraw[2], 6469887);
- TextDrawTextSize(StatsTextDraw[2], 81.000000, 0.000000);
- for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
- {
- // ZIVOT SAMO TEXTDRAW
- StatsTextDrawPl[0][playerid] = TextDrawCreate(141.000000, 174.000000, "Zivot");
- TextDrawBackgroundColor(StatsTextDrawPl[0][playerid], 255);
- TextDrawFont(StatsTextDrawPl[0][playerid], 2);
- TextDrawLetterSize(StatsTextDrawPl[0][playerid], 0.310000, 0.899999);
- TextDrawColor(StatsTextDrawPl[0][playerid], -1);
- TextDrawSetOutline(StatsTextDrawPl[0][playerid], 0);
- TextDrawSetProportional(StatsTextDrawPl[0][playerid], 1);
- TextDrawSetShadow(StatsTextDrawPl[0][playerid], 1);
- // RACUN
- StatsTextDrawPl[1][playerid] = TextDrawCreate(288.000000, 174.000000, "Racun");
- TextDrawBackgroundColor(StatsTextDrawPl[1][playerid], 255);
- TextDrawFont(StatsTextDrawPl[1][playerid], 2);
- TextDrawLetterSize(StatsTextDrawPl[1][playerid], 0.310000, 0.899999);
- TextDrawColor(StatsTextDrawPl[1][playerid], -1);
- TextDrawSetOutline(StatsTextDrawPl[1][playerid], 0);
- TextDrawSetProportional(StatsTextDrawPl[1][playerid], 1);
- TextDrawSetShadow(StatsTextDrawPl[1][playerid], 1);
- // IMOVINA
- StatsTextDrawPl[2][playerid] = TextDrawCreate(433.000000, 174.000000, "Imovina");
- TextDrawBackgroundColor(StatsTextDrawPl[2][playerid], 255);
- TextDrawFont(StatsTextDrawPl[2][playerid], 2);
- TextDrawLetterSize(StatsTextDrawPl[2][playerid], 0.310000, 0.899999);
- TextDrawColor(StatsTextDrawPl[2][playerid], -1);
- TextDrawSetOutline(StatsTextDrawPl[2][playerid], 0);
- TextDrawSetProportional(StatsTextDrawPl[2][playerid], 1);
- TextDrawSetShadow(StatsTextDrawPl[2][playerid], 1);
- // IME i Prezime
- StatsTextDrawPl[3][playerid] = TextDrawCreate(140.000000, 130.000000, "Stats: Ime_Prezime");
- TextDrawBackgroundColor(StatsTextDrawPl[3][playerid], 255);
- TextDrawFont(StatsTextDrawPl[3][playerid], 1);
- TextDrawLetterSize(StatsTextDrawPl[3][playerid], 0.470000, 1.899999);
- TextDrawColor(StatsTextDrawPl[3][playerid], -1);
- TextDrawSetOutline(StatsTextDrawPl[3][playerid], 0);
- TextDrawSetProportional(StatsTextDrawPl[3][playerid], 1);
- TextDrawSetShadow(StatsTextDrawPl[3][playerid], 1);
- // gumbi osnovno - dodatno
- StatsTextDrawPl[4][playerid] = TextDrawCreate(240.000000, 293.000000, "Osnovno Dodatno");
- TextDrawBackgroundColor(StatsTextDrawPl[4][playerid], 255);
- TextDrawFont(StatsTextDrawPl[4][playerid], 2);
- TextDrawLetterSize(StatsTextDrawPl[4][playerid], 0.360000, 1.000000);
- TextDrawColor(StatsTextDrawPl[4][playerid], -1);
- TextDrawSetOutline(StatsTextDrawPl[4][playerid], 0);
- TextDrawSetProportional(StatsTextDrawPl[4][playerid], 1);
- TextDrawSetShadow(StatsTextDrawPl[4][playerid], 1);
- StatsTextDrawPl[5][playerid] = TextDrawCreate(139.000000, 156.000000, "~y~~h~[ZIVOT] ~y~~h~[RACUN] ~y~~h~[IMOVINA]");
- TextDrawBackgroundColor(StatsTextDrawPl[5][playerid], 255);
- TextDrawFont(StatsTextDrawPl[5][playerid], 3);
- TextDrawLetterSize(StatsTextDrawPl[5][playerid], 0.480000, 1.000000);
- TextDrawColor(StatsTextDrawPl[5][playerid], -1);
- TextDrawSetOutline(StatsTextDrawPl[5][playerid], 0);
- TextDrawSetProportional(StatsTextDrawPl[5][playerid], 1);
- TextDrawSetShadow(StatsTextDrawPl[5][playerid], 1);
- }
- return 0;
- }
- stock SStatsTextDraw(playerid, igracu)
- {
- TextDrawShowForPlayer(igracu,StatsTextDraw[0]);
- TextDrawShowForPlayer(igracu,StatsTextDraw[1]);
- TextDrawShowForPlayer(igracu,StatsTextDraw[2]);
- TextDrawShowForPlayer(igracu,StatsTextDrawPl[3][playerid]);
- TextDrawShowForPlayer(igracu,StatsTextDrawPl[4][playerid]);
- TextDrawShowForPlayer(igracu,StatsTextDrawPl[0][playerid]);
- TextDrawShowForPlayer(igracu,StatsTextDrawPl[1][playerid]);
- TextDrawShowForPlayer(igracu,StatsTextDrawPl[2][playerid]);
- TextDrawShowForPlayer(igracu,StatsTextDrawPl[5][playerid]); //slova
- return 0;
- }
- stock HStatsTextDraw(playerid,igracu)
- {
- TextDrawHideForPlayer(igracu,StatsTextDraw[0]);
- TextDrawHideForPlayer(igracu,StatsTextDraw[1]);
- TextDrawHideForPlayer(igracu,StatsTextDraw[2]);
- TextDrawHideForPlayer(igracu,StatsTextDrawPl[0][playerid]);
- TextDrawHideForPlayer(igracu,StatsTextDrawPl[1][playerid]);
- TextDrawHideForPlayer(igracu,StatsTextDrawPl[2][playerid]);
- TextDrawHideForPlayer(igracu,StatsTextDrawPl[3][playerid]);
- TextDrawHideForPlayer(igracu,StatsTextDrawPl[4][playerid]);
- TextDrawHideForPlayer(igracu,StatsTextDrawPl[5][playerid]);
- }
- stock DStatsTextDraw()
- {
- TextDrawDestroy(StatsTextDraw[0]); // veliki box
- TextDrawDestroy(StatsTextDraw[1]); // plavo gore
- TextDrawDestroy(StatsTextDraw[2]); // plavo dole
- for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
- {
- TextDrawDestroy(StatsTextDrawPl[0][playerid]); //zivot
- TextDrawDestroy(StatsTextDrawPl[1][playerid]); //racun
- TextDrawDestroy(StatsTextDrawPl[2][playerid]); //imovina
- TextDrawDestroy(StatsTextDrawPl[3][playerid]); //ime prezime
- TextDrawDestroy(StatsTextDrawPl[4][playerid]); //gumbi
- TextDrawDestroy(StatsTextDrawPl[5][playerid]); //slova
- }
- return 0;
- }