diff --git a/resources/views/client/join.blade.php b/resources/views/client/join.blade.php index 5ce0c8c..2046254 100644 --- a/resources/views/client/join.blade.php +++ b/resources/views/client/join.blade.php @@ -10,11 +10,13 @@ $app = addslashes($_GET["app"]);*/ if (Auth::check()) { $username = addslashes(Auth::user()->name); + $authorised = 1 $id = addslashes(Auth::id()); $app = 'http://morblox.us/Asset/CharacterFetch.ashx?userId=' . addslashes(Auth::id()); } else { $randName = mt_rand(1, 9999); $username = "Guest " . $randName; + $authorised = 0 $id = mt_rand(1000, 9999); $app = 'http://morblox.us/Asset/CharacterFetch.ashx?userId=0'; } @@ -116,7 +118,7 @@ function setMessage(message) end -- Check if client is not logged in ---if == 0 then +--if == 0 then -- setMessage("You are not logged in. (ID: 400)", "Kick", "Kick") -- error("Not logged in") --end @@ -226,10 +228,20 @@ local success, err = pcall(function() playerConnectSucces, player = pcall(function() return client:PlayerConnect(, "", , 0, threadSleepTime) end) - player:SetSuperSafeChat(false) - pcall(function() player:SetUnder13(false) end) - pcall(function() player:SetMembershipType(Enum.MembershipType.None) end) - pcall(function() player:SetAccountAge(365) end) + if == 0 then + -- guest + player:SetSuperSafeChat(true) + pcall(function() player:SetUnder13(true) end) + pcall(function() player:SetMembershipType(Enum.MembershipType.None) end) + pcall(function() player:SetAccountAge(0) end) + else + -- user + player:SetSuperSafeChat(false) + pcall(function() player:SetUnder13(false) end) + pcall(function() player:SetMembershipType(Enum.MembershipType.None) end) + pcall(function() player:SetAccountAge(365) end) + end + player.Idled:connect(onPlayerIdled) -- Overriden