DrawText

From Soldat Community Wiki
Revision as of 10:28, 13 March 2013 by Tehbugerz0r (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

From the Scripting Manual

procedure DrawText(ID: byte; Text: string; Delay: integer; Colour: longint; Scale: single; X, Y: integer);

Parameter Info:
 ID (Byte): Player ID to write text to. Set to 0 to write to all players!
 Text (String): Text to be written to the screen.
 Delay (Integer): Time in milliseconds for the text to remain on screen.
 Colour (Longint): Colour the text should be when drawn to the console.
 Scale (Single): Scale to use for drawing.
 X (Integer): X position for the text. 1 -> 640
 Y (Integer): Y position for the text. 1 -> 480

Description:
 This function will draw text anywhere on the players screen (Like the You killed Major text).
Set ID to 0 to write the text to ALL Players in the server!

Examples

begin
    DrawText(0,'Hello big world!',330,RGB(255,255,255),0.20,40,240);
    // Will draw: "Hello big world!" in the center of ALL players screens
end;


See also