Difference between revisions of "TActivePlayer"

From Soldat Community Wiki
Jump to: navigation, search
(Members)
Line 17: Line 17:
 
<tr><th>Member declaration</th><th>Access mode</th></tr>
 
<tr><th>Member declaration</th><th>Access mode</th></tr>
 
   <tr><td>function [[TActivePlayer.Ban|Ban]](Time: Integer; Reason: string): Boolean</td></tr>
 
   <tr><td>function [[TActivePlayer.Ban|Ban]](Time: Integer; Reason: string): Boolean</td></tr>
 +
  <tr><td>function [[TActivePlayer.Kick|Kick]]: Boolean</td></tr>
 
   <tr><td>procedure [[TActivePlayer.Say|Say]](Text: string)</td></tr>
 
   <tr><td>procedure [[TActivePlayer.Say|Say]](Text: string)</td></tr>
 
   <tr><td>procedure [[TActivePlayer.Damage|Damage]](Shooter: Byte; Damage: Integer)</td></tr>
 
   <tr><td>procedure [[TActivePlayer.Damage|Damage]](Shooter: Byte; Damage: Integer)</td></tr>
Line 23: Line 24:
 
   <tr><td>procedure [[TActivePlayer.Forward|Forward]](TargetIP: string; TargetPort: Word; Message: string)</td></tr>
 
   <tr><td>procedure [[TActivePlayer.Forward|Forward]](TargetIP: string; TargetPort: Word; Message: string)</td></tr>
 
   <tr><td>procedure [[TActivePlayer.GiveBonus|GiveBonus]](BType: Byte)</td></tr>
 
   <tr><td>procedure [[TActivePlayer.GiveBonus|GiveBonus]](BType: Byte)</td></tr>
  <tr><td>function [[TActivePlayer.Kick|Kick]]: Boolean</td></tr>
 
 
   <tr><td>procedure [[TActivePlayer.Move|Move]](X, Y: Single)</td></tr>
 
   <tr><td>procedure [[TActivePlayer.Move|Move]](X, Y: Single)</td></tr>
 
   <tr><td>procedure [[TActivePlayer.Tell|Tell]](Text: string)</td></tr>
 
   <tr><td>procedure [[TActivePlayer.Tell|Tell]](Text: string)</td></tr>

Revision as of 23:11, 25 June 2013

Inheritance


Description

Represents an active player. Accessible trough Players[] array property.

user constructable: NO
user destructable: NO

Members

Member declarationAccess mode
function Ban(Time: Integer; Reason: string): Boolean
function Kick: Boolean
procedure Say(Text: string)
procedure Damage(Shooter: Byte; Damage: Integer)
procedure BigText(Layer: Byte; Text: string; Delay: Integer; Color: Longint; Scale: Single; X, Y: Integer)
procedure ForceWeapon(Primary, Secondary: TWeapon)
procedure Forward(TargetIP: string; TargetPort: Word; Message: string)
procedure GiveBonus(BType: Byte)
procedure Move(X, Y: Single)
procedure Tell(Text: string)
procedure WriteConsole(Text: string; Color: Longint)

property ID: ByteR
property Team: ByteRW
property Alive: BooleanRW
property Kills: IntegerRW
property Deaths: IntegerR
property Ping: IntegerR
property Active: BooleanR
property IP: stringR
property Port: WordR
property VelX: SingleR
property VelY: SingleR
property Muted: BooleanRW
property Jets: IntegerR
property Grenades: ByteR
property X: SingleR
property Y: SingleR
property Flagger: BooleanR
property Time: IntegerR
property OnGround: BooleanR
property Human: BooleanR
property Direction: ShortintR
property Flags: ByteR
property HWID: stringR
property KeyUp: BooleanR
property KeyLeft: BooleanR
property KeyRight: BooleanR
property KeyShoot: BooleanR
property KeyJetpack: BooleanR
property KeyGrenade: BooleanR
property KeyChangeWeap: BooleanR
property KeyThrow: BooleanR
property KeyReload: BooleanR
property KeyCrouch: BooleanR
property KeyProne: BooleanR
property WeaponActive[ID: Byte]W
property OnFlagGrab: TOnFlagGrabRW
property OnFlagReturn: TOnFlagReturnRW
property OnFlagScore: TOnFlagScoreRW
property OnBeforeRespawn: TOnBeforeRespawnRW
property OnAfterRespawn: TOnAfterRespawnRW
property OnDamage: TOnDamageRW
property OnKill: TOnKillRW
property OnWeaponChange: TOnWeaponChangeRW
property OnVoteMapStart: TOnVoteMapStartRW
property OnVoteKickStart: TOnVoteKickStartRW
property OnVoteMap: TOnVoteMapRW
property OnVoteKick: TOnVoteKickRW
property OnSpeak: TOnSpeakRW
property OnCommand: TOnCommandRW