19.06.2014, 17:10
Hey, so the problem is that it won't create the gangzone directly after it loads.
So the 3DTextLabel loads fine, however the gangzone won't show up. Thanks in advance.
Codes:
So the 3DTextLabel loads fine, however the gangzone won't show up. Thanks in advance.
Codes:
pawn Код:
//OnGameModeInit
for(new i = 0; i < sizeof(TurfInfo); i++)
{
new string[128];
format(string,sizeof(string),TURF_PATH,i);
INI_ParseFile(string,"loadturf_%s", .bExtra = true, .extra = i);
LoadTurf(i);
}
//
stock LoadTurf(turfid)
{
new string[128];
format(string, sizeof(string), "%s\n{FFFF00}/capture\nTID: %d",TurfInfo[turfid][tText],turfid);
TurfInfo[turfid][tTextID] = CreateDynamic3DTextLabel(string,COLOR_WHITE,TurfInfo[turfid][tX],TurfInfo[turfid][tY],TurfInfo[turfid][tZ]+0.2,10.0);
TurfInfo[turfid][tTurf] = GangZoneCreate(TurfInfo[turfid][tW],TurfInfo[turfid][tS],TurfInfo[turfid][tE],TurfInfo[turfid][tN]);
GangZoneShowForAll(TurfInfo[turfid][tTurf],COLOR_BLUE);
return 1;
}