public LoadGangwar()
{
new rows, fields, count;
cache_get_data(rows, fields);
for(new i=0;i<rows;i++)
{
GangFight[i][warOwner] = cache_get_field_content_int(i, "warOwner");
GangFight[i][warReady] = cache_get_field_content_int(i, "warReady");
// TextDraw
GangFight[i][warDraw][0] = TextDrawCreate(38.000000, 278.000000, "_");
TextDrawBackgroundColor(GangFight[i][warDraw][0], 255);
TextDrawFont(GangFight[i][warDraw][0], 1);
TextDrawLetterSize(GangFight[i][warDraw][0], 0.629999, 5.000000);
TextDrawColor(GangFight[i][warDraw][0], -1);
TextDrawSetOutline(GangFight[i][warDraw][0], 0);
TextDrawSetProportional(GangFight[i][warDraw][0], 1);
TextDrawSetShadow(GangFight[i][warDraw][0], 1);
TextDrawUseBox(GangFight[i][warDraw][0], 1);
TextDrawBoxColor(GangFight[i][warDraw][0], 150);
TextDrawTextSize(GangFight[i][warDraw][0], 136.000000, 60.000000);
TextDrawSetSelectable(GangFight[i][warDraw][0], 0);
GangFight[i][warDraw][1] = TextDrawCreate(38.000000, 278.000000, "_");
TextDrawBackgroundColor(GangFight[i][warDraw][1], 255);
TextDrawFont(GangFight[i][warDraw][1], 1);
TextDrawLetterSize(GangFight[i][warDraw][1], 0.629999, 1.000000);
TextDrawColor(GangFight[i][warDraw][1], -1);
TextDrawSetOutline(GangFight[i][warDraw][1], 0);
TextDrawSetProportional(GangFight[i][warDraw][1], 1);
TextDrawSetShadow(GangFight[i][warDraw][1], 1);
TextDrawUseBox(GangFight[i][warDraw][1], 1);
TextDrawBoxColor(GangFight[i][warDraw][1], 150);
TextDrawTextSize(GangFight[i][warDraw][1], 136.000000, 60.000000);
TextDrawSetSelectable(GangFight[i][warDraw][1], 0);
GangFight[i][warDraw][2] = TextDrawCreate(40.000000, 278.000000,"~b~Gangfight - Scoreboard");
TextDrawBackgroundColor(GangFight[i][warDraw][2], 255);
TextDrawFont(GangFight[i][warDraw][2], 2);
TextDrawLetterSize(GangFight[i][warDraw][2], 0.170000, 0.899999);
TextDrawColor(GangFight[i][warDraw][2], -1);
TextDrawSetOutline(GangFight[i][warDraw][2], 1);
TextDrawSetProportional(GangFight[i][warDraw][2], 1);
TextDrawSetSelectable(GangFight[i][warDraw][2], 0);
GangFight[i][warDraw][3] = TextDrawCreate(40.000000, 289.000000, " ");
TextDrawBackgroundColor(GangFight[i][warDraw][3], 255);
TextDrawFont(GangFight[i][warDraw][3], 2);
TextDrawLetterSize(GangFight[i][warDraw][3], 0.170000, 0.899999);
TextDrawColor(GangFight[i][warDraw][3], -1);
TextDrawSetOutline(GangFight[i][warDraw][3], 1);
TextDrawSetProportional(GangFight[i][warDraw][3], 1);
TextDrawSetSelectable(GangFight[i][warDraw][3], 0);
GangFight[i][warDraw][4] = TextDrawCreate(40.000000, 298.000000, " ");
TextDrawBackgroundColor(GangFight[i][warDraw][4], 255);
TextDrawFont(GangFight[i][warDraw][4], 2);
TextDrawLetterSize(GangFight[i][warDraw][4], 0.170000, 0.899999);
TextDrawColor(GangFight[i][warDraw][4], -1);
TextDrawSetOutline(GangFight[i][warDraw][4], 1);
TextDrawSetProportional(GangFight[i][warDraw][4], 1);
TextDrawSetSelectable(GangFight[i][warDraw][4], 0);
GangFight[i][warDraw][5] = TextDrawCreate(50.000000, 309.000000, " ");
TextDrawBackgroundColor(GangFight[i][warDraw][5], 255);
TextDrawFont(GangFight[i][warDraw][5], 2);
TextDrawLetterSize(GangFight[i][warDraw][5], 0.160000, 0.899999);
TextDrawColor(GangFight[i][warDraw][5], -1);
TextDrawSetOutline(GangFight[i][warDraw][5], 1);
TextDrawSetProportional(GangFight[i][warDraw][5], 1);
TextDrawSetSelectable(GangFight[i][warDraw][5], 0);
GangFight[i][warDraw][6] = TextDrawCreate(36.500000, 227.000000, "19305");
TextDrawBackgroundColor(GangFight[i][warDraw][6], 255);
TextDrawFont(GangFight[i][warDraw][6], 5);
TextDrawLetterSize(GangFight[i][warDraw][6], -0.099999, 1.000000);
TextDrawColor(GangFight[i][warDraw][6], -1);
TextDrawSetOutline(GangFight[i][warDraw][6], 0);
TextDrawSetProportional(GangFight[i][warDraw][6], 1);
TextDrawSetShadow(GangFight[i][warDraw][6], 1);
TextDrawUseBox(GangFight[i][warDraw][6], 1);
TextDrawBoxColor(GangFight[i][warDraw][6], 0);
TextDrawTextSize(GangFight[i][warDraw][6], 50.000000, 50.000000);
TextDrawSetPreviewModel(GangFight[i][warDraw][6], 2993);
TextDrawSetPreviewRot(GangFight[i][warDraw][6], 0.000000, 5.000000, 0.000000, 1.000000);
TextDrawSetSelectable(GangFight[i][warDraw][6], 0);
GangFight[i][warDraw][7] = TextDrawCreate(87.500000, 227.000000, "19305");
TextDrawBackgroundColor(GangFight[i][warDraw][7], 255);
TextDrawFont(GangFight[i][warDraw][7], 5);
TextDrawLetterSize(GangFight[i][warDraw][7], -0.099999, 1.000000);
TextDrawColor(GangFight[i][warDraw][7], -1);
TextDrawSetOutline(GangFight[i][warDraw][7], 0);
TextDrawSetProportional(GangFight[i][warDraw][7], 1);
TextDrawSetShadow(GangFight[i][warDraw][7], 1);
TextDrawUseBox(GangFight[i][warDraw][7], 1);
TextDrawBoxColor(GangFight[i][warDraw][7], 0);
TextDrawTextSize(GangFight[i][warDraw][7], 50.000000, 50.000000);
TextDrawSetPreviewModel(GangFight[i][warDraw][7], 2993);
TextDrawSetPreviewRot(GangFight[i][warDraw][7], 0.000000, 5.000000, 0.000000, 1.000000);
TextDrawSetSelectable(GangFight[i][warDraw][7], 0);
GangFight[i][warDraw][8] = TextDrawCreate(95.000000, 229.000000, "_");
TextDrawBackgroundColor(GangFight[i][warDraw][8], 255);
TextDrawFont(GangFight[i][warDraw][8], 1);
TextDrawLetterSize(GangFight[i][warDraw][8], 0.800000, 5.400000);
TextDrawColor(GangFight[i][warDraw][8], -1);
TextDrawSetOutline(GangFight[i][warDraw][8], 0);
TextDrawSetProportional(GangFight[i][warDraw][8], 1);
TextDrawSetShadow(GangFight[i][warDraw][8], 1);
TextDrawUseBox(GangFight[i][warDraw][8], 1);
TextDrawBoxColor(GangFight[i][warDraw][8], 255);
TextDrawTextSize(GangFight[i][warDraw][8], 84.000000, 20.000000);
TextDrawSetSelectable(GangFight[i][warDraw][8], 0);
GangFight[i][warDraw][9] = TextDrawCreate(44.000000, 257.000000, " ");
TextDrawBackgroundColor(GangFight[i][warDraw][9], 255);
TextDrawFont(GangFight[i][warDraw][9], 1);
TextDrawLetterSize(GangFight[i][warDraw][9], 0.419999, 1.100000);
TextDrawColor(GangFight[i][warDraw][9], -1);
TextDrawSetOutline(GangFight[i][warDraw][9], 1);
TextDrawSetProportional(GangFight[i][warDraw][9], 1);
TextDrawSetSelectable(GangFight[i][warDraw][9], 0);
GangFight[i][warDraw][10] = TextDrawCreate(139.000000, 217.000000, "_");
TextDrawBackgroundColor(GangFight[i][warDraw][10], 255);
TextDrawFont(GangFight[i][warDraw][10], 1);
TextDrawLetterSize(GangFight[i][warDraw][10], 0.470000, 1.000000);
TextDrawColor(GangFight[i][warDraw][10], -1);
TextDrawSetOutline(GangFight[i][warDraw][10], 0);
TextDrawSetProportional(GangFight[i][warDraw][10], 1);
TextDrawSetShadow(GangFight[i][warDraw][10], 1);
TextDrawUseBox(GangFight[i][warDraw][10], 1);
TextDrawBoxColor(GangFight[i][warDraw][10], 150);
TextDrawTextSize(GangFight[i][warDraw][10], 35.000000, 50.000000);
TextDrawSetSelectable(GangFight[i][warDraw][10], 0);
GangFight[i][warDraw][11] = TextDrawCreate(46.000000, 218.000000, "~g~~h~~h~Flagge A");
TextDrawBackgroundColor(GangFight[i][warDraw][11], 255);
TextDrawFont(GangFight[i][warDraw][11], 1);
TextDrawLetterSize(GangFight[i][warDraw][11], 0.210000, 0.799999);
TextDrawColor(GangFight[i][warDraw][11], -1);
TextDrawSetOutline(GangFight[i][warDraw][11], 1);
TextDrawSetProportional(GangFight[i][warDraw][11], 1);
TextDrawSetSelectable(GangFight[i][warDraw][11], 0);
GangFight[i][warDraw][12] = TextDrawCreate(95.000000, 218.000000, "~g~~h~~h~Flagge B");
TextDrawBackgroundColor(GangFight[i][warDraw][12], 255);
TextDrawFont(GangFight[i][warDraw][12], 1);
TextDrawLetterSize(GangFight[i][warDraw][12], 0.210000, 0.799999);
TextDrawColor(GangFight[i][warDraw][12], -1);
TextDrawSetOutline(GangFight[i][warDraw][12], 1);
TextDrawSetProportional(GangFight[i][warDraw][12], 1);
TextDrawSetSelectable(GangFight[i][warDraw][12], 0);
GangFight[i][warDraw][13] = TextDrawCreate(96.000000, 257.000000, " ");
TextDrawBackgroundColor(GangFight[i][warDraw][13], 255);
TextDrawFont(GangFight[i][warDraw][13], 1);
TextDrawLetterSize(GangFight[i][warDraw][13], 0.419999, 1.100000);
TextDrawColor(GangFight[i][warDraw][13], -1);
TextDrawSetOutline(GangFight[i][warDraw][13], 1);
TextDrawSetProportional(GangFight[i][warDraw][13], 1);
TextDrawSetSelectable(GangFight[i][warDraw][13], 0);
GangFight[i][warZoneID] = GangZoneCreate(GangFight[i][warZoneMinX],GangFight[i][warZoneMinY],GangFight[i][warZoneMaxX],GangFight[i][warZoneMaxY]);
GangFight[i][warPickup][0] = CreatePickup(2993,1,GangFight[i][warFlagX1],GangFight[i][warFlagY1],GangFight[i][warFlagZ1],-1);
GangFight[i][warPickup][1] = CreatePickup(2993,1,GangFight[i][warFlagX2],GangFight[i][warFlagY2],GangFight[i][warFlagZ2],-1);
new string[128];
WarLabel[0] = Create3DTextLabel(" ", COLOR_WHITE, GangFight[i][warFlagX1], GangFight[i][warFlagY1], GangFight[i][warFlagZ1]+0.75, 15.0, 0, 0);
WarLabel[1] = Create3DTextLabel(" ", COLOR_WHITE, GangFight[i][warFlagX2], GangFight[i][warFlagY2], GangFight[i][warFlagZ2]+0.75, 15.0, 0, 0);
format(string, sizeof(string), "{AFAFAF}Flagge A\n%s\n\n%s", GangFight[i][warZoneName], GetFraktionNumberPlate2(GangFight[i][warOwner]));
Update3DTextLabelText(WarLabel[0], COLOR_WHITE, string);
printf("Flagge A: %s", GetFraktionNumberPlate2(GangFight[i][warOwner]));
format(string, sizeof(string), "{AFAFAF}Flagge B\n%s\n\n%s", GangFight[i][warZoneName], GetFraktionNumberPlate2(GangFight[i][warOwner]));
Update3DTextLabelText(WarLabel[1], COLOR_WHITE, string);
printf("Flagge B: %s", GetFraktionNumberPlate2(GangFight[i][warOwner]));
count++;
}
printf("[LOAD] Gangwar geladen: %d/%d", count, MAX_GWZONES);
return 1;
}
Alles anzeigen