13 lines
309 B
Plaintext
13 lines
309 B
Plaintext
addEvent("onReceiveClientPassword");
|
|
CLIENT_PASSWORD <- -1;
|
|
|
|
addEventHandler("onPacket", function(data){
|
|
local id = data.readUInt8();
|
|
if (id == 250)
|
|
{
|
|
local client_password = data.readString();
|
|
CLIENT_PASSWORD = client_password;
|
|
callEvent("onReceiveClientPassword", client_password);
|
|
}
|
|
})
|