2012-01-26 17:44:37 -05:00
|
|
|
function HandleSpawnCommand( Split, Player )
|
|
|
|
World = Player:GetWorld()
|
2013-03-02 09:43:46 -05:00
|
|
|
X[Player:GetName()] = Player:GetPosX()
|
|
|
|
Y[Player:GetName()] = Player:GetPosY()
|
|
|
|
Z[Player:GetName()] = Player:GetPosZ()
|
2012-01-26 17:44:37 -05:00
|
|
|
Player:TeleportTo( World:GetSpawnX(), World:GetSpawnY(), World:GetSpawnZ() )
|
|
|
|
LOGINFO( Player:GetName() .. " returned to spawn." )
|
|
|
|
return true
|
|
|
|
end
|