2013-07-27 16:24:03 +01:00
|
|
|
function HandleChangeGMCommand( Split, Player )
|
2013-08-11 16:00:53 +01:00
|
|
|
|
2013-07-27 16:24:03 +01:00
|
|
|
if( #Split ~= 2 ) then
|
2013-08-11 16:00:53 +01:00
|
|
|
SendMessage( Player, "Usage: /gm [0|1]" )
|
2013-07-27 16:24:03 +01:00
|
|
|
return true
|
|
|
|
|
end
|
2013-08-11 16:00:53 +01:00
|
|
|
|
|
|
|
|
Player:SetGameMode( Split[2] )
|
2013-07-27 16:24:03 +01:00
|
|
|
return true
|
2013-08-11 16:00:53 +01:00
|
|
|
|
|
|
|
|
end
|