Script Name: AddSpaces
Script Description: This function allows you to add spaces to... meh, whatever, look at the attached screenshot
Original Author(s): Mr
Core Version: 2.2.X
{ Mr's AddSpaces }
function AddSpaces(Text: string; tlen: integer): string;
var
i,Spacecount: integer;
Spaces: string;
begin
Spacecount := length(Text);
for i := 0 to (tlen-Spacecount) do Spaces := Spaces+' ';
Result := Spaces;
end;
If you don't always want to write the string that you want to use with my function twice, just change Result := Spaces; to Result := Text+Spaces;
Usage example:
WriteConsole(ID,GetPlayerStat(i,'Name')+AddSpaces(GetPlayerStat(i,'Name'),26)+iif(GodMode[i],'On','Off'),RGB(0,245,245));
- Mr