C# Класс ZombieAPI.GameObjects.Player

Object that represents a player
Наследование: RemoteObject
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Stats Stats_
Weapons Weapons_
World World_

Private Properties

Свойство Тип Описание
CustomSVCMD void
SetClientDVar void

Открытые методы

Метод Описание
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)

Приватные методы

Метод Описание
CustomSVCMD ( int x, string param ) : void
SetClientDVar ( string DVar ) : void

Описание методов

ClientCommand() публичный Метод

Send a client command to the designated client.
public ClientCommand ( string CMD, int ClientNum ) : void
CMD string
ClientNum int
Результат void

Electrocute() публичный Метод

Show a short electrocute effect on the player's HUD.
Doesn't damage the player.
public Electrocute ( ) : void
Результат void

Ignite() публичный Метод

Show a short fire effect on the player's HUD.
Doesn't damage the player.
public Ignite ( ) : void
Результат void

Kick() публичный Метод

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
Результат void

MovePlayerCamera() публичный Метод

public MovePlayerCamera ( string args ) : void
args string
Результат void

Player() публичный Метод

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
Результат System

ServerCommand() публичный Метод

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
Результат void

Tell() публичный Метод

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.
Результат void

checkError() публичный Метод

public checkError ( System.Boolean svcmd ) : void
svcmd System.Boolean
Результат void

iPrintBoldLn() публичный Метод

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
Результат void

iPrintLn() публичный Метод

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
Результат void

Описание свойств

Stats публичное свойство

A 'category' containing stuff like the player's kills, rank, etc
public Stats_ Stats
Результат Stats_

Weapons публичное свойство

A 'category' containing settings of the player's equipment, weapons, and ammo
public Weapons_ Weapons
Результат Weapons_

World публичное свойство

A 'category' containing all world settings
public World_ World
Результат World_