fix: Исправлен механизм генерации и синхронизации клиентского токена
This commit is contained in:
@@ -450,17 +450,9 @@ addEventHandler("onPlayerEquipSpell", function(playerid, slotId, instance)
|
||||
|
||||
addEventHandler("onPlayerJoin", function(playerid)
|
||||
{
|
||||
local client_password = _globalInstance.generateClientPassword();
|
||||
|
||||
local packet = Packet();
|
||||
packet.writeUInt8(250);
|
||||
packet.writeString(client_password);
|
||||
packet.send(playerid, RELIABLE);
|
||||
|
||||
local data = {
|
||||
event = "onPlayerJoin",
|
||||
playerid = playerid,
|
||||
password = client_password
|
||||
playerid = playerid
|
||||
}
|
||||
|
||||
if (_globalInstance != -1)
|
||||
|
||||
Reference in New Issue
Block a user