I've found a couple of things wrong:
function( target_plys )
if Player:Alive() then
RunConsoleCommand( "ulx god", Player:Name() ) end
end )
end
function( target_plys )
RunConsoleCommand( "ulx ungod", playername) end
end )
)
All these arbitrarily placed "end"s. That's breaking it, right there.
Try this instead:
function( target_plys )
if Player:Alive() then
RunConsoleCommand("ulx god", Player:Name())
end
end)
function( target_plys )
RunConsoleCommand( "ulx ungod", playername)
end)
RunConsoleCommand( "ulx ungod", playername)
That's not how RunConsoleCommand works.
RunConsoleCommand("ulx", "ungod", ply:Name())
is how it should be.
That's not all your code, is it? Because that
definitely won't make you a ULX command.