feat: Добавлен вызов ивента при получении клиентского пароля
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
CLIENT_PASSWORD <- "";
|
||||
addEvent("onReceiveClientPassword");
|
||||
|
||||
addEventHandler("onPacket", function(data){
|
||||
local id = data.readUInt8();
|
||||
if (id == 250)
|
||||
CLIENT_PASSWORD = data.readString();
|
||||
{
|
||||
local client_password = data.readString();
|
||||
callEvent("onReceiveClientPassword", client_password);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user