Little Help with A Custom Duel Command for Jedi

So im kinda new to Lua coding i mean i understand other languages but i really wanted to to try Gmod lua so i decided if could make a jedi duel Command that when you do /Duel <name> then a message pops up in the other player screen and says do /accept or /deny so i dont know if that possible but here what i have for no

util.AddNetworkString( “JediDuel” )

[LUA]hook.Add( ‘PlayerSay’, ‘JediDuel’, function( ply, text, team )
if allowedTeams[ JediDuel ] or ply:IsAdmin() then
if string.sub( text, 0, 5 ) == ‘/Duel’ then
local plyname = string.sub( text,
for key, player in pairs( players.GetHumans() ) do
if string.find( player:Nick(), plyname ) then
net.Send( player )
end
end
end )[/LUA]

[editline]28th November 2016[/editline]

These are the Allowedteams Code too

[LUA]local allowedTeams = {
TEAM_PADAWAN = true,
TEAM_KNIGHT = true,
TEAM_MASTER = true,
TEAM_YODA = true,
TEAM_KOON = true,
TEAM_SECURA = true,
TEAM_KOTH = true,
}[/LUA]