summaryrefslogtreecommitdiffstats
path: root/Core/gm.lua
blob: 85bcf984bf8b823077930d27074ec5e95abd2f15 (plain) (blame)
1
2
3
4
5
6
7
8
function HandleChangeGMCommand( Split, Player )
	if( #Split ~= 2 ) then
		Player:SendMessage( cChatColor.Green .. "Usage: /gm [GameMode (0|1)]" )
		return true
	end
	Player:SetGameMode(Split[2])
	return true
end