rendered paste bodypublic ScrollU(){ // by Luby
if(TVBarEnabled){
new temp[2048];
new temp2[2048];
if(strlen(TVBarText)>1){
if(TVBarText[0] == '~' && TVBarText[2] == '~'){
if(strlen(TVBarText)>3){
if(TVBarText[4] != '~' && TVBarText[6] != '~'){
if(TVBarColorBuffer[1] != TVBarText[1]){
TVBarColorBuffer[0] = TVBarText[0];
TVBarColorBuffer[1] = TVBarText[1];
TVBarColorBuffer[2] = TVBarText[2];
}
for(new g=0;g<strlen(TVBarText)-4;g++)temp[g] = TVBarText[g+4];
new strlenx = strlen(temp);
new backup[2048];backup = temp;
for(new gx=0;gx<strlenx;gx++)temp[gx+3] = backup[gx];
temp[0] = TVBarColorBuffer[0];
temp[1] = TVBarColorBuffer[1];
temp[2] = TVBarColorBuffer[2];
} else if(strlen(TVBarText)>6){
if(TVBarColorBuffer[1] != TVBarText[5]){
TVBarColorBuffer[0] = TVBarText[4];
TVBarColorBuffer[1] = TVBarText[5];
TVBarColorBuffer[2] = TVBarText[6];
}
for(new g=0;g<strlen(TVBarText)-7;g++)temp[g] = TVBarText[g+7];
new strlenx = strlen(temp);
new backup[2048];backup = temp;
for(new gx=0;gx<strlenx;gx++)temp[gx+3] = backup[gx];
temp[0] = TVBarColorBuffer[0];
temp[1] = TVBarColorBuffer[1];
temp[2] = TVBarColorBuffer[2];
}
}
} else for(new g=0;g<strlen(TVBarText)-1;g++)temp[g] = TVBarText[g+1];
for(new g=0;g<250;g++){
if(g>247)if(temp[g] != '~' && temp[g+1] != '~')break; else {
temp2[g] = temp[g];
temp2[g+1] = temp[g+1];
temp2[g+2] = temp[g+2];
temp2[g+3] = temp[g+3];
break;
}
temp2[g] = temp[g];
}
TVBarText = temp;
if(strlen(temp2)){
TextDrawSetString(TVBar, temp2);
}
} else {
format(TVBarText, 2048, "______________________________________________________________________________________________________________________________________________________________________________________________________%s", TVBarOryginal);
TextDrawSetString(TVBar, TVBarText);
}
}
}