Update join.blade.php
This commit is contained in:
parent
4032935b3e
commit
81f57cd2b6
|
|
@ -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 <?php echo $id; ?> == 0 then
|
||||
--if <?php echo $authorised; ?> == 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(<?php echo $id; ?>, "<?php echo $ip; ?>", <?php echo $port; ?>, 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 <?php echo $authorised ?> == 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
|
||||
|
|
|
|||
Loading…
Reference in New Issue