Liberty Unleashed
Scripting => Script Snippets => Topic started by: sasha19323 on June 27, 2014, 07:04:10 pm
-
Just add this code on onScriptLoad client-side event:
try
{
HashTable("lalka"); //Here can be any name of table;
}
catch(e)
{
//if player has been reconnected
Message("You have been kicked. Please type /q and join again", Colour(255, 0, 0));
CallServerFunc(null, "KickPlayer", FindLocalPlayer());
}
This snippet will help you prevent some /reconnect bugs(objects removing etc).
-
I'm not sure why this would work, care to explain?
-
I'm not sure why this would work, care to explain?
I've found, that hashes won't be cleaned after /reconnect. If hash already exists there will be an error.
-
I'm not sure why this would work, care to explain?
I've found, that hashes won't be cleaned after /reconnect. If hash already exists there will be an error.
Ah like that, nice find.