C# Class ZombieAPI.GameObjects.Player

Object that represents a player
Inheritance: RemoteObject
Datei anzeigen Open project: jariz/jZm Class Usage Examples

Public Properties

Property Type Description
Stats Stats_
Weapons Weapons_
World World_

Private Properties

Property Type Description
CustomSVCMD void
SetClientDVar void

Public Methods

Method Description
ClientCommand ( string CMD, int ClientNum ) : void

Send a client command to the designated client.

Electrocute ( ) : void

Show a short electrocute effect on the player's HUD.

Doesn't damage the player.

Ignite ( ) : void

Show a short fire effect on the player's HUD.

Doesn't damage the player.

Kick ( string Message ) : void

Remove player from game, showing a message.

MovePlayerCamera ( string args ) : void
Player ( Process Game, int PlayerAddr, GEntity ParentEntity ) : System

Initialize a new Player based on the offset.

DO NOT CALL FROM PLUGIN. Use ZombieAPI.GetPlayers to get all players.

ServerCommand ( string Parameter, int CMDType, int ClientNum ) : void

Send a servercommand to the client (or server? i don't actually know how it works)

Tell ( string Message, bool Raw ) : void

Send a chat message to this player. Only the player can see this message.

The message will show up in the player's normal chat, alongside with the other player's chat.

checkError ( System.Boolean svcmd ) : void
iPrintBoldLn ( string Message ) : void

Shows a message in the top-middle of the player's screen

iPrintLn ( string Message ) : void

Send message to player's killfeed. (bottom-left box)

Private Methods

Method Description
CustomSVCMD ( int x, string param ) : void
SetClientDVar ( string DVar ) : void

Method Details

ClientCommand() public method

Send a client command to the designated client.
public ClientCommand ( string CMD, int ClientNum ) : void
CMD string
ClientNum int
return void

Electrocute() public method

Show a short electrocute effect on the player's HUD.
Doesn't damage the player.
public Electrocute ( ) : void
return void

Ignite() public method

Show a short fire effect on the player's HUD.
Doesn't damage the player.
public Ignite ( ) : void
return void

Kick() public method

Remove player from game, showing a message.
public Kick ( string Message ) : void
Message string The message in the dialog box to show to the player. You can use ^1color ^2codes
return void

MovePlayerCamera() public method

public MovePlayerCamera ( string args ) : void
args string
return void

Player() public method

Initialize a new Player based on the offset.
DO NOT CALL FROM PLUGIN. Use ZombieAPI.GetPlayers to get all players.
public Player ( Process Game, int PlayerAddr, GEntity ParentEntity ) : System
Game System.Diagnostics.Process The game process
PlayerAddr int The offset of the entity
ParentEntity GEntity The entity that has created this Player
return System

ServerCommand() public method

Send a servercommand to the client (or server? i don't actually know how it works)
public ServerCommand ( string Parameter, int CMDType, int ClientNum ) : void
Parameter string
CMDType int
ClientNum int
return void

Tell() public method

Send a chat message to this player. Only the player can see this message.
The message will show up in the player's normal chat, alongside with the other player's chat.
public Tell ( string Message, bool Raw ) : void
Message string The message to show. You can use ^1color ^2codes
Raw bool If false, remove 'Server: ' from the start of the message.
return void

checkError() public method

public checkError ( System.Boolean svcmd ) : void
svcmd System.Boolean
return void

iPrintBoldLn() public method

Shows a message in the top-middle of the player's screen
public iPrintBoldLn ( string Message ) : void
Message string The message to show. You can use ^1color ^2codes
return void

iPrintLn() public method

Send message to player's killfeed. (bottom-left box)
public iPrintLn ( string Message ) : void
Message string The message to show. You can use ^1color ^2codes
return void

Property Details

Stats public_oe property

A 'category' containing stuff like the player's kills, rank, etc
public Stats_ Stats
return Stats_

Weapons public_oe property

A 'category' containing settings of the player's equipment, weapons, and ammo
public Weapons_ Weapons
return Weapons_

World public_oe property

A 'category' containing all world settings
public World_ World
return World_