|
|
@ -10,14 +10,11 @@ Quantum.Server.Player = {} |
|
|
|
local ply = FindMetaTable( "Player" ) |
|
|
|
local ply = FindMetaTable( "Player" ) |
|
|
|
|
|
|
|
|
|
|
|
function GM:PlayerInitialSpawn( ply ) |
|
|
|
function GM:PlayerInitialSpawn( ply ) |
|
|
|
ply.isloaded = true -- REMOVE THIS WHEN MYSQL DB IS ADDED |
|
|
|
ply.isloaded = false -- REMOVE THIS WHEN MYSQL DB IS ADDED |
|
|
|
-- load in all of the players characters and stuff from the MySQL DB |
|
|
|
-- load in all of the players characters and stuff from the MySQL DB |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
local function setUpPlayer( ply ) |
|
|
|
local function setUpPlayer( ply ) |
|
|
|
|
|
|
|
|
|
|
|
Quantum.Server.Char.SetCurrentCharacter( ply, ply.charindex || 1 ) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if( ply:GetModel() ~= nil ) then |
|
|
|
if( ply:GetModel() ~= nil ) then |
|
|
|
ply:SetupHands() |
|
|
|
ply:SetupHands() |
|
|
|
else |
|
|
|
else |
|
|
@ -30,7 +27,6 @@ function GM:PlayerSpawn( ply ) |
|
|
|
|
|
|
|
|
|
|
|
if( !ply.isloaded ) then |
|
|
|
if( !ply.isloaded ) then |
|
|
|
ply:Spectate( OBS_MODE_FIXED ) |
|
|
|
ply:Spectate( OBS_MODE_FIXED ) |
|
|
|
-- set cinematic view here |
|
|
|
|
|
|
|
Quantum.Net.OpenMenu( ply, "character", Quantum.Server.Char.GetPlayerChars( ply ) ) |
|
|
|
Quantum.Net.OpenMenu( ply, "character", Quantum.Server.Char.GetPlayerChars( ply ) ) |
|
|
|
else |
|
|
|
else |
|
|
|
ply:UnSpectate() |
|
|
|
ply:UnSpectate() |
|
|
|