summaryrefslogblamecommitdiffstats
path: root/Plugins/Core/gamemode.lua
blob: 1e73b46fd09a1847dc8773b8532787e571987fa8 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                                        
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