Properties |
protected
|
|
$packets = [
self::PACKET_STATUS => "SAMP%si",
self::PACKET_PLAYERS => "SAMP%sd",
self::PACKET_RULES => "SAMP%sr",
]
Array of packets we want to look up.
Each key should correspond to a defined method in this or a parent class
Array of packets we want to look up.
Each key should correspond to a defined method in this or a parent class
|
#
|
protected
|
|
$responses = ["\x69" => "processStatus", "\x64" => "processPlayers", "\x72" => "processRules"]
Use the response flag to figure out what method to run
Use the response flag to figure out what method to run
|
#
|
protected
|
|
$protocol = 'samp'
The query protocol used to make the call
The query protocol used to make the call
|
#
|
protected
|
|
$name = 'samp'
String name of this protocol class
String name of this protocol class
|
#
|
protected
|
|
$name_long = "San Andreas Multiplayer"
Longer string name of this protocol class
Longer string name of this protocol class
|
#
|
protected
|
|
$server_code = null
Holds the calculated server code that is passed when querying for information
Holds the calculated server code that is passed when querying for information
|
#
|
protected
|
|
$join_link = "samp://%s:%d/"
The client join link
|
#
|
protected
|
|
$normalize = [
'general' => [
'dedicated' => 'dedicated',
'hostname' => ['hostname', 'servername'],
'mapname' => 'mapname',
'maxplayers' => 'max_players',
'numplayers' => 'num_players',
'password' => 'password',
],
'player' => ['name' => 'name', 'score' => 'score', 'ping' => 'ping'],
]
Normalize settings for this protocol
Normalize settings for this protocol
|
#
|