Difference between revisions of "DrawTextEx"

From Soldat Community Wiki
Jump to: navigation, search
(Created page with " ''DrawTextEx(Id, Num: Byte; Text: String; Delay: Integer; Colour: Longint; Scale: Single; X, Y: Integer)'' '''Parameter Info:''' ID (Byte): Player ID to write text to. Se...")
 
Line 1: Line 1:
  ''DrawTextEx(Id, Num: Byte; Text: String; Delay: Integer; Colour: Longint; Scale: Single; X, Y: Integer)''
+
===From the Scripting Manual===
 
+
  ''procedure DrawTextEx(ID, Num: byte; Text: string; Delay: integer; Colour: longint; Scale: single; X, Y: integer);''
 +
 
  '''Parameter Info:'''
 
  '''Parameter Info:'''
 
   ID (Byte): Player ID to write text to. Set to 0 to write to all players!
 
   ID (Byte): Player ID to write text to. Set to 0 to write to all players!
Line 10: Line 11:
 
   X (Integer): X position for the text. 1 -> 640
 
   X (Integer): X position for the text. 1 -> 640
 
   Y (Integer): Y position for the text. 1 -> 480
 
   Y (Integer): Y position for the text. 1 -> 480
 
+
 
  '''Description:'''
 
  '''Description:'''
 
   This function will draw text anywhere on the players screen (Like the You killed Major text).<br>
 
   This function will draw text anywhere on the players screen (Like the You killed Major text).<br>
 
   Set ID to 0 to write the text to ALL Players in the server!
 
   Set ID to 0 to write the text to ALL Players in the server!
 
   Difference from [[DrawText]] is the Num variable.
 
   Difference from [[DrawText]] is the Num variable.
 +
 +
==See also==
 +
[[DrawTextEx]]
 +
 +
[[Category:Beta Server Scripting]]

Revision as of 11:39, 13 March 2013

From the Scripting Manual

procedure DrawTextEx(ID, Num: 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!
 Num (Byte): DrawText layer to use. 1 is used by default DrawText messages (eg. "You killed X", "X flag returned").
 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! Difference from DrawText is the Num variable.

See also

DrawTextEx