Custom Command help

i have a big Problem.

I have done my first own GMOD Script…
But it has only an Console Command.
How i can make my own Custom Command?

Command of my Custom Command:



local function nss_command ( ply, text, team )
	if string.sub( tet, 1, 8) == "!support" then

		ply:nss

	end
end
hook.Add( "PlayerSay", "nss_command", nss_command)


Error:

[ERROR] lua/autorun/server/sv_nss.lua:6: function arguments expected near ‘end’

  1. unknown - lua/autorun/server/sv_nss.lua:0

You need to call “ply:nss” and you mistyped “text” on the second line.

Thanks you ;D No any Problems now!

snip, above post was edited.

Sorry, first i dont see your post ^^