Difference between revisions of "TActivePlayer"
(→Members) |
(→Members) |
||
Line 13: | Line 13: | ||
<code> | <code> | ||
<table> | <table> | ||
− | <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>function [[TActivePlayer.Kick|Kick]]: Boolean</td></tr> | ||
Line 61: | Line 61: | ||
<tr><td>property [[TActivePlayer.KeyProne|KeyProne]]: Boolean</td><td>R</td></tr> | <tr><td>property [[TActivePlayer.KeyProne|KeyProne]]: Boolean</td><td>R</td></tr> | ||
<tr><td>property [[TActivePlayer.WeaponActive|WeaponActive]][ID: Byte]: Boolean</td><td>W</td></tr> | <tr><td>property [[TActivePlayer.WeaponActive|WeaponActive]][ID: Byte]: Boolean</td><td>W</td></tr> | ||
− | <tr><td>property [[TActivePlayer.OnFlagGrab|OnFlagGrab]]: [[ | + | <tr><td>property [[TActivePlayer.OnFlagGrab|OnFlagGrab]]: [[TOnFlagGrabEvent]]</td><td>RW</td></tr> |
− | <tr><td>property [[TActivePlayer.OnFlagReturn|OnFlagReturn]]: [[ | + | <tr><td>property [[TActivePlayer.OnFlagReturn|OnFlagReturn]]: [[TOnFlagReturnEvent]]</td><td>RW</td></tr> |
− | <tr><td>property [[TActivePlayer.OnFlagScore|OnFlagScore]]: [[ | + | <tr><td>property [[TActivePlayer.OnFlagScore|OnFlagScore]]: [[TOnFlagScoreEvent]]</td><td>RW</td></tr> |
− | <tr><td>property [[TActivePlayer.OnBeforeRespawn|OnBeforeRespawn]]: [[ | + | <tr><td>property [[TActivePlayer.OnBeforeRespawn|OnBeforeRespawn]]: [[TOnBeforeRespawnEvent]]</td><td>RW</td></tr> |
− | <tr><td>property [[TActivePlayer.OnAfterRespawn|OnAfterRespawn]]: [[ | + | <tr><td>property [[TActivePlayer.OnAfterRespawn|OnAfterRespawn]]: [[TOnAfterRespawnEvent]]</td><td>RW</td></tr> |
− | <tr><td>property [[TActivePlayer.OnDamage|OnDamage]]: [[ | + | <tr><td>property [[TActivePlayer.OnDamage|OnDamage]]: [[TOnDamageEvent]]</td><td>RW</td></tr> |
− | <tr><td>property [[TActivePlayer.OnKill|OnKill]]: [[ | + | <tr><td>property [[TActivePlayer.OnKill|OnKill]]: [[TOnKillEvent]]</td><td>RW</td></tr> |
− | <tr><td>property [[TActivePlayer.OnWeaponChange|OnWeaponChange]]: [[ | + | <tr><td>property [[TActivePlayer.OnWeaponChange|OnWeaponChange]]: [[TOnWeaponChangeEvent]]</td><td>RW</td></tr> |
− | <tr><td>property [[TActivePlayer.OnVoteMapStart|OnVoteMapStart]]: [[ | + | <tr><td>property [[TActivePlayer.OnVoteMapStart|OnVoteMapStart]]: [[TOnVoteMapStartEvent]]</td><td>RW</td></tr> |
− | <tr><td>property [[TActivePlayer.OnVoteKickStart|OnVoteKickStart]]: [[ | + | <tr><td>property [[TActivePlayer.OnVoteKickStart|OnVoteKickStart]]: [[TOnVoteKickStartEvent]]</td><td>RW</td></tr> |
− | <tr><td>property [[TActivePlayer.OnVoteMap|OnVoteMap]]: [[ | + | <tr><td>property [[TActivePlayer.OnVoteMap|OnVoteMap]]: [[TOnVoteMapEvent]]</td><td>RW</td></tr> |
<tr><td>property [[TActivePlayer.OnVoteKick|OnVoteKick]]: [[TOnVoteKick]]</td><td>RW</td></tr> | <tr><td>property [[TActivePlayer.OnVoteKick|OnVoteKick]]: [[TOnVoteKick]]</td><td>RW</td></tr> | ||
− | <tr><td>property [[TActivePlayer.OnSpeak|OnSpeak]]: [[ | + | <tr><td>property [[TActivePlayer.OnSpeak|OnSpeak]]: [[TOnSpeakEvent]]</td><td>RW</td></tr> |
− | <tr><td>property [[TActivePlayer.OnCommand|OnCommand]]: [[ | + | <tr><td>property [[TActivePlayer.OnCommand|OnCommand]]: [[TOnCommandEvent]]</td><td>RW</td></tr> |
</table> | </table> | ||
</code> | </code> | ||
[[Category:Classes]] | [[Category:Classes]] |
Revision as of 16:38, 1 July 2013
Inheritance
Description
Represents an active player. Accessible trough Players[] array property.
user constructable: NO
user destructable: NO
Members
Member declaration | Access 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: Byte | R |
property Team: Byte | RW |
property Alive: Boolean | RW |
property Kills: Integer | RW |
property Deaths: Integer | R |
property Ping: Integer | R |
property Active: Boolean | R |
property IP: string | R |
property Port: Word | R |
property VelX: Single | R |
property VelY: Single | R |
property Muted: Boolean | RW |
property Jets: Integer | R |
property Grenades: Byte | R |
property X: Single | R |
property Y: Single | R |
property Flagger: Boolean | R |
property Time: Integer | R |
property OnGround: Boolean | R |
property Human: Boolean | R |
property Direction: Shortint | R |
property Flags: Byte | R |
property HWID: string | R |
property KeyUp: Boolean | R |
property KeyLeft: Boolean | R |
property KeyRight: Boolean | R |
property KeyShoot: Boolean | R |
property KeyJetpack: Boolean | R |
property KeyGrenade: Boolean | R |
property KeyChangeWeap: Boolean | R |
property KeyThrow: Boolean | R |
property KeyReload: Boolean | R |
property KeyCrouch: Boolean | R |
property KeyProne: Boolean | R |
property WeaponActive[ID: Byte]: Boolean | W |
property OnFlagGrab: TOnFlagGrabEvent | RW |
property OnFlagReturn: TOnFlagReturnEvent | RW |
property OnFlagScore: TOnFlagScoreEvent | RW |
property OnBeforeRespawn: TOnBeforeRespawnEvent | RW |
property OnAfterRespawn: TOnAfterRespawnEvent | RW |
property OnDamage: TOnDamageEvent | RW |
property OnKill: TOnKillEvent | RW |
property OnWeaponChange: TOnWeaponChangeEvent | RW |
property OnVoteMapStart: TOnVoteMapStartEvent | RW |
property OnVoteKickStart: TOnVoteKickStartEvent | RW |
property OnVoteMap: TOnVoteMapEvent | RW |
property OnVoteKick: TOnVoteKick | RW |
property OnSpeak: TOnSpeakEvent | RW |
property OnCommand: TOnCommandEvent | RW |