#if defined _sconsole_included #endinput #endif #define _sconsole_included /* This uses a global function, change TextGlobal if you already use 999 */ #include const TextGlobal = 999; new TextY; stock ConsoleInit() { SetGlobal(TextGlobal, 0); } stock ConsoleText(Title[], Text[], r = 255, g = 255, b = 255 ) { TextY = GetGlobal(TextGlobal); DrawText(Title, 2, TextY, r, g, b, 255 ); DrawText(Text, 120, TextY, r, g, b, 255 ); SetGlobal(TextGlobal, TextY + (12 + 2) ); } stock ConsoleNumber(Title[], Number, r = 255, g = 255, b = 255 ) { new temp[20]; TextY = GetGlobal(TextGlobal); ToString(Number, temp); DrawText(Title, 2, TextY, r, g, b, 255 ); DrawText(temp, 120, TextY, r, g, b, 255 ); SetGlobal(TextGlobal, TextY + (12 + 2) ); }