12906c026d
git-svn-id: http://mc-server.googlecode.com/svn/trunk@763 0a769ca7-a7f5-676a-18bf-c427514a06d6
10 lines
450 B
Lua
10 lines
450 B
Lua
function HandleViewDistanceCommand( Split, Player )
|
|
if( #Split ~= 2 ) then
|
|
Player:SendMessage( cChatColor.Green .. "Usage: /viewdistance [".. cClientHandle.MIN_VIEW_DISTANCE .."-".. cClientHandle.MAX_VIEW_DISTANCE .."]" )
|
|
return true
|
|
end
|
|
|
|
Player:GetClientHandle():SetViewDistance( Split[2] )
|
|
Player:SendMessage(cChatColor.Green .. "Your viewdistance has been set to " .. Player:GetClientHandle():GetViewDistance() )
|
|
return true
|
|
end |