feat: Сохранение клиентского токена в root table
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
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);
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user