new Text:gZoneTextIDs[ MAX_SCRIPT_ZONES ], Text:gPlayerZoneText[ MAX_PLAYERS ], Text:TEXT_BallaZone, Text:TEXT_GroveZone; //.. public OnGameModeInit( ) { TEXT_BallaZone = TextDrawCreate( "Ballas Territory", 0.0, 0.0 ); TEXT_GroveZone = TextDrawCreate( "Grove Territory", 0.0, 0.0 ); gZoneTextIDs[ ballazoneid ] = TEXT_BallaZone; gZoneTextIDs[ grovezoneid ] = TEXT_GroveZone; return 1; } public UpdateZoneNames() { new string[128]; for(new j=0; j= ZoneInfo[i][zMinX] && x < ZoneInfo[i][zMaxX] && y>= ZoneInfo[i][zMinY] && y < ZoneInfo[i][zMaxY]) { if ( gPlayerZoneText[ j ] != INVALID_TEXT_DRAW ) break; // player in this zone, i is the zoneid.. gPlayerZoneText[ j ] = gZoneTextIDs[ i ]; TextDrawShowForPlayer( playerid, gZoneTextIDs[ i ] ); // format(string, sizeof(string),"%s Territory",ZoneInfo[i][zColor]); // TextDrawSetString(ZoneTextDraws,string); IsInZone = 1; break; } } if(!IsInZone) { TextDrawHideForPlayer( playerid, gPlayerZoneText[ j ] ); gPlayerZoneText[ j ] = INVALID_TEXT_DRAW; // TextDrawSetString(ZoneTextDraws, " "); } } } }